blob: b35a049c0ad750b7c6816e4753dd6e150e395237 [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 60
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %fragment_main "fragment_main"
9 OpEntryPoint GLCompute %compute_main "compute_main"
10 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpMemberName %tint_symbol_1 0 "tint_symbol"
14 OpName %tint_symbol_1 "tint_symbol_1"
15 OpName %arg_0 "arg_0"
16 OpName %vertex_main_position_Output "vertex_main_position_Output"
17 OpName %vertex_main_loc0_Output "vertex_main_loc0_Output"
18 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
19 OpName %textureLoad_7fd822 "textureLoad_7fd822"
20 OpName %res "res"
21 OpName %fragment_main "fragment_main"
22 OpName %compute_main "compute_main"
23 OpName %vertex_main_inner "vertex_main_inner"
24 OpMemberName %VertexOutput 0 "pos"
25 OpMemberName %VertexOutput 1 "prevent_dce"
26 OpName %VertexOutput "VertexOutput"
27 OpName %out "out"
28 OpName %vertex_main "vertex_main"
29 OpMemberDecorate %tint_symbol_1 0 Offset 0
30 OpDecorate %tint_symbol_1 Block
31 OpDecorate %1 DescriptorSet 0
32 OpDecorate %1 Binding 0
33 OpDecorate %arg_0 DescriptorSet 1
34 OpDecorate %arg_0 Binding 0
35 OpDecorate %vertex_main_position_Output BuiltIn Position
36 OpDecorate %vertex_main_loc0_Output Location 0
37 OpDecorate %vertex_main_loc0_Output Flat
38 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
39 OpMemberDecorate %VertexOutput 0 Offset 0
40 OpMemberDecorate %VertexOutput 1 Offset 16
41 %float = OpTypeFloat 32
42%tint_symbol_1 = OpTypeStruct %float
43%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
44 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
45 %7 = OpTypeImage %float 2D 0 0 0 1 Unknown
46%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
47 %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant
48 %v4float = OpTypeVector %float 4
49%_ptr_Output_v4float = OpTypePointer Output %v4float
50%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
51%_ptr_Output_float = OpTypePointer Output %float
52%vertex_main_loc0_Output = OpVariable %_ptr_Output_float Output
53%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
54 %15 = OpTypeFunction %float
55 %uint = OpTypeInt 32 0
56 %v2uint = OpTypeVector %uint 2
57 %uint_1 = OpConstant %uint 1
58 %19 = OpConstantComposite %v2uint %uint_1 %uint_1
59 %int = OpTypeInt 32 1
60 %int_1 = OpConstant %int 1
61%_ptr_Function_float = OpTypePointer Function %float
62 %void = OpTypeVoid
63 %31 = OpTypeFunction %void
64%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
65 %uint_0 = OpConstant %uint 0
66%VertexOutput = OpTypeStruct %v4float %float
67 %43 = OpTypeFunction %VertexOutput
68%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
69 %47 = OpConstantNull %VertexOutput
70%_ptr_Function_v4float = OpTypePointer Function %v4float
71 %50 = OpConstantNull %v4float
72 %float_1 = OpConstant %float 1
73%textureLoad_7fd822 = OpFunction %float None %15
74 %16 = OpLabel
75 %res = OpVariable %_ptr_Function_float Function
76 %17 = OpLoad %7 %arg_0
77 %18 = OpImageFetch %v4float %17 %19 Lod %int_1
78 %25 = OpCompositeExtract %float %18 0
79 OpStore %res %25
80 %28 = OpLoad %float %res
81 OpReturnValue %28
82 OpFunctionEnd
83%fragment_main = OpFunction %void None %31
84 %32 = OpLabel
85 %33 = OpFunctionCall %float %textureLoad_7fd822
86 %34 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0
87 OpStore %34 %33
88 OpReturn
89 OpFunctionEnd
90%compute_main = OpFunction %void None %31
91 %38 = OpLabel
92 %39 = OpFunctionCall %float %textureLoad_7fd822
93 %40 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0
94 OpStore %40 %39
95 OpReturn
96 OpFunctionEnd
97%vertex_main_inner = OpFunction %VertexOutput None %43
98 %44 = OpLabel
99 %out = OpVariable %_ptr_Function_VertexOutput Function %47
100 %48 = OpAccessChain %_ptr_Function_v4float %out %uint_0
101 OpStore %48 %50
102 %51 = OpAccessChain %_ptr_Function_float %out %uint_1
103 %52 = OpFunctionCall %float %textureLoad_7fd822
104 OpStore %51 %52
105 %53 = OpLoad %VertexOutput %out
106 OpReturnValue %53
107 OpFunctionEnd
108%vertex_main = OpFunction %void None %31
109 %55 = OpLabel
110 %56 = OpFunctionCall %VertexOutput %vertex_main_inner
111 %57 = OpCompositeExtract %v4float %56 0
112 OpStore %vertex_main_position_Output %57
113 %58 = OpCompositeExtract %float %56 1
114 OpStore %vertex_main_loc0_Output %58
115 OpStore %vertex_main___point_size_Output %float_1
116 OpReturn
117 OpFunctionEnd