• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 %EmptyStruct2Test "EmptyStruct2Test"
13               OpName %GetValue "GetValue"
14               OpName %GetValue2 "GetValue"
15               OpName %self "self"
16               OpName %self2 "self"
17               OpName %emptyStruct "emptyStruct"
18               OpName %value "value"
19               OpName %EntryPoint_Main "EntryPoint_Main"
20
21%EmptyStructTest = OpTypeStruct
22%EmptyStruct2Test = OpTypeStruct %EmptyStructTest
23%_ptr_Function_EmptyStruct2Test = OpTypePointer Function %EmptyStruct2Test
24      %float = OpTypeFloat 32
25%_ptr_Function_float = OpTypePointer Function %float
26          %5 = OpTypeFunction %float %_ptr_Function_EmptyStruct2Test
27          %6 = OpTypeFunction %float %EmptyStruct2Test
28       %void = OpTypeVoid
29%_ptr_Function_void = OpTypePointer Function %void
30          %8 = OpTypeFunction %void %_ptr_Function_EmptyStruct2Test
31          %9 = OpTypeFunction %void
32    %float_0 = OpConstant %float 0
33	  %value4 = OpConstantNull %EmptyStruct2Test
34
35   %GetValue = OpFunction %float None %5
36       %self = OpFunctionParameter %_ptr_Function_EmptyStruct2Test
37         %13 = OpLabel
38               OpReturnValue %float_0
39               OpFunctionEnd
40
41   %GetValue2 = OpFunction %float None %6
42       %self2 = OpFunctionParameter %EmptyStruct2Test
43         %14 = OpLabel
44               OpReturnValue %float_0
45               OpFunctionEnd
46
47%EntryPoint_Main = OpFunction %void None %9
48         %37 = OpLabel
49     %emptyStruct = OpVariable %_ptr_Function_EmptyStruct2Test Function
50         %18 = OpVariable %_ptr_Function_EmptyStruct2Test Function
51      %value = OpVariable %_ptr_Function_float Function
52	  %value2 = OpCompositeConstruct %EmptyStructTest
53	  %value3 = OpCompositeConstruct %EmptyStruct2Test %value2
54         %22 = OpFunctionCall %float %GetValue %emptyStruct
55         %23 = OpFunctionCall %float %GetValue2 %value3
56         %24 = OpFunctionCall %float %GetValue2 %value4
57               OpStore %value %22
58               OpStore %value %23
59               OpStore %value %24
60               OpReturn
61               OpFunctionEnd
62