blob: 1b1531269fe8ef6602d543a150103370d657018b [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: 67
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_fe0565 "textureLoad_fe0565"
20 OpName %arg_1 "arg_1"
21 OpName %arg_2 "arg_2"
22 OpName %res "res"
23 OpName %fragment_main "fragment_main"
24 OpName %compute_main "compute_main"
25 OpName %vertex_main_inner "vertex_main_inner"
26 OpMemberName %VertexOutput 0 "pos"
27 OpMemberName %VertexOutput 1 "prevent_dce"
28 OpName %VertexOutput "VertexOutput"
29 OpName %out "out"
30 OpName %vertex_main "vertex_main"
31 OpMemberDecorate %tint_symbol_1 0 Offset 0
32 OpDecorate %tint_symbol_1 Block
33 OpDecorate %1 DescriptorSet 0
34 OpDecorate %1 Binding 0
35 OpDecorate %arg_0 DescriptorSet 1
36 OpDecorate %arg_0 Binding 0
37 OpDecorate %vertex_main_position_Output BuiltIn Position
38 OpDecorate %vertex_main_loc0_Output Location 0
39 OpDecorate %vertex_main_loc0_Output Flat
40 OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
41 OpMemberDecorate %VertexOutput 0 Offset 0
42 OpMemberDecorate %VertexOutput 1 Offset 16
43 %uint = OpTypeInt 32 0
44 %v4uint = OpTypeVector %uint 4
45%tint_symbol_1 = OpTypeStruct %v4uint
46%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
47 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
48 %8 = OpTypeImage %uint 2D 0 0 1 1 Unknown
49%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
50 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
51 %float = OpTypeFloat 32
52 %v4float = OpTypeVector %float 4
53%_ptr_Output_v4float = OpTypePointer Output %v4float
54%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
55%_ptr_Output_v4uint = OpTypePointer Output %v4uint
56%vertex_main_loc0_Output = OpVariable %_ptr_Output_v4uint Output
57%_ptr_Output_float = OpTypePointer Output %float
58%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
59 %18 = OpTypeFunction %v4uint
60 %v2uint = OpTypeVector %uint 2
61%_ptr_Function_v2uint = OpTypePointer Function %v2uint
62 %uint_1 = OpConstant %uint 1
63 %23 = OpConstantComposite %v2uint %uint_1 %uint_1
64 %int = OpTypeInt 32 1
65%_ptr_Function_int = OpTypePointer Function %int
66 %int_1 = OpConstant %int 1
67%_ptr_Function_v4uint = OpTypePointer Function %v4uint
68 %void = OpTypeVoid
69 %38 = OpTypeFunction %void
70%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
71 %uint_0 = OpConstant %uint 0
72%VertexOutput = OpTypeStruct %v4float %v4uint
73 %50 = OpTypeFunction %VertexOutput
74%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
75 %54 = OpConstantNull %VertexOutput
76%_ptr_Function_v4float = OpTypePointer Function %v4float
77 %57 = OpConstantNull %v4float
78 %float_1 = OpConstant %float 1
79%textureLoad_fe0565 = OpFunction %v4uint None %18
80 %19 = OpLabel
81 %arg_1 = OpVariable %_ptr_Function_v2uint Function
82 %arg_2 = OpVariable %_ptr_Function_int Function
83 %res = OpVariable %_ptr_Function_v4uint Function
84 OpStore %arg_1 %23
85 OpStore %arg_2 %int_1
86 %29 = OpLoad %8 %arg_0
87 %30 = OpLoad %v2uint %arg_1
88 %31 = OpLoad %int %arg_2
89 %32 = OpImageFetch %v4uint %29 %30 Sample %31
90 OpStore %res %32
91 %35 = OpLoad %v4uint %res
92 OpReturnValue %35
93 OpFunctionEnd
94%fragment_main = OpFunction %void None %38
95 %39 = OpLabel
96 %40 = OpFunctionCall %v4uint %textureLoad_fe0565
97 %41 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
98 OpStore %41 %40
99 OpReturn
100 OpFunctionEnd
101%compute_main = OpFunction %void None %38
102 %45 = OpLabel
103 %46 = OpFunctionCall %v4uint %textureLoad_fe0565
104 %47 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
105 OpStore %47 %46
106 OpReturn
107 OpFunctionEnd
108%vertex_main_inner = OpFunction %VertexOutput None %50
109 %51 = OpLabel
110 %out = OpVariable %_ptr_Function_VertexOutput Function %54
111 %55 = OpAccessChain %_ptr_Function_v4float %out %uint_0
112 OpStore %55 %57
113 %58 = OpAccessChain %_ptr_Function_v4uint %out %uint_1
114 %59 = OpFunctionCall %v4uint %textureLoad_fe0565
115 OpStore %58 %59
116 %60 = OpLoad %VertexOutput %out
117 OpReturnValue %60
118 OpFunctionEnd
119%vertex_main = OpFunction %void None %38
120 %62 = OpLabel
121 %63 = OpFunctionCall %VertexOutput %vertex_main_inner
122 %64 = OpCompositeExtract %v4float %63 0
123 OpStore %vertex_main_position_Output %64
124 %65 = OpCompositeExtract %v4uint %63 1
125 OpStore %vertex_main_loc0_Output %65
126 OpStore %vertex_main___point_size_Output %float_1
127 OpReturn
128 OpFunctionEnd