Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/asm/frag/empty-struct.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.2
3 ; Generator: Khronos; 0
4 ; Bound: 43
5 ; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %EntryPoint_Main "main"
9 OpExecutionMode %EntryPoint_Main OriginUpperLeft
10 OpSource Unknown 100
11 OpName %EmptyStructTest "EmptyStructTest"
12 OpName %GetValue "GetValue"
13 OpName %GetValue2 "GetValue"
14 OpName %self "self"
15 OpName %self2 "self"
16 OpName %emptyStruct "emptyStruct"
17 OpName %value "value"
18 OpName %EntryPoint_Main "EntryPoint_Main"
19
20 %EmptyStructTest = OpTypeStruct
21 %_ptr_Function_EmptyStructTest = OpTypePointer Function %EmptyStructTest
22 %float = OpTypeFloat 32
23 %_ptr_Function_float = OpTypePointer Function %float
24 %5 = OpTypeFunction %float %_ptr_Function_EmptyStructTest
25 %6 = OpTypeFunction %float %EmptyStructTest
26 %void = OpTypeVoid
27 %_ptr_Function_void = OpTypePointer Function %void
28 %8 = OpTypeFunction %void %_ptr_Function_EmptyStructTest
29 %9 = OpTypeFunction %void
30 %float_0 = OpConstant %float 0
31
32 %GetValue = OpFunction %float None %5
33 %self = OpFunctionParameter %_ptr_Function_EmptyStructTest
34 %13 = OpLabel
35 OpReturnValue %float_0
36 OpFunctionEnd
37
38 %GetValue2 = OpFunction %float None %6
39 %self2 = OpFunctionParameter %EmptyStructTest
40 %14 = OpLabel
41 OpReturnValue %float_0
42 OpFunctionEnd
43
44 %EntryPoint_Main = OpFunction %void None %9
45 %37 = OpLabel
46 %emptyStruct = OpVariable %_ptr_Function_EmptyStructTest Function
47 %18 = OpVariable %_ptr_Function_EmptyStructTest Function
48 %value = OpVariable %_ptr_Function_float Function
49 %value2 = OpCompositeConstruct %EmptyStructTest
50 %22 = OpFunctionCall %float %GetValue %emptyStruct
51 %23 = OpFunctionCall %float %GetValue2 %value2
52 OpStore %value %22
53 OpStore %value %23
54 OpReturn
55 OpFunctionEnd