blob: b4f241b4f4445ab05c1d7cc9e5c0adfe8cc8e85c [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: 59
5; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpMemberName %tint_symbol_1 0 "tint_symbol"
15 OpName %tint_symbol_1 "tint_symbol_1"
16 OpName %arg_0 "arg_0"
17 OpName %vertex_main_position_Output "vertex_main_position_Output"
18 OpName %vertex_main_loc0_Output "vertex_main_loc0_Output"
19 OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
20 OpName %textureLoad_276a2c "textureLoad_276a2c"
21 OpName %res "res"
22 OpName %fragment_main "fragment_main"
23 OpName %compute_main "compute_main"
24 OpName %vertex_main_inner "vertex_main_inner"
25 OpMemberName %VertexOutput 0 "pos"
26 OpMemberName %VertexOutput 1 "prevent_dce"
27 OpName %VertexOutput "VertexOutput"
28 OpName %out "out"
29 OpName %vertex_main "vertex_main"
30 OpMemberDecorate %tint_symbol_1 0 Offset 0
31 OpDecorate %tint_symbol_1 Block
32 OpDecorate %1 DescriptorSet 0
33 OpDecorate %1 Binding 0
34 OpDecorate %arg_0 DescriptorSet 1
35 OpDecorate %arg_0 Binding 0
36 OpDecorate %arg_0 NonWritable
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 1D 0 0 0 2 Rgba32ui
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 %int = OpTypeInt 32 1
61 %int_1 = OpConstant %int 1
62%_ptr_Function_v4uint = OpTypePointer Function %v4uint
63 %void = OpTypeVoid
64 %29 = OpTypeFunction %void
65%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
66 %uint_0 = OpConstant %uint 0
67%VertexOutput = OpTypeStruct %v4float %v4uint
68 %41 = OpTypeFunction %VertexOutput
69%_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput
70 %45 = OpConstantNull %VertexOutput
71%_ptr_Function_v4float = OpTypePointer Function %v4float
72 %48 = OpConstantNull %v4float
73 %uint_1 = OpConstant %uint 1
74 %float_1 = OpConstant %float 1
75%textureLoad_276a2c = OpFunction %v4uint None %18
76 %19 = OpLabel
77 %res = OpVariable %_ptr_Function_v4uint Function
78 %20 = OpLoad %8 %arg_0
79 %21 = OpImageRead %v4uint %20 %int_1 None
80 OpStore %res %21
81 %26 = OpLoad %v4uint %res
82 OpReturnValue %26
83 OpFunctionEnd
84%fragment_main = OpFunction %void None %29
85 %30 = OpLabel
86 %31 = OpFunctionCall %v4uint %textureLoad_276a2c
87 %32 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
88 OpStore %32 %31
89 OpReturn
90 OpFunctionEnd
91%compute_main = OpFunction %void None %29
92 %36 = OpLabel
93 %37 = OpFunctionCall %v4uint %textureLoad_276a2c
94 %38 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
95 OpStore %38 %37
96 OpReturn
97 OpFunctionEnd
98%vertex_main_inner = OpFunction %VertexOutput None %41
99 %42 = OpLabel
100 %out = OpVariable %_ptr_Function_VertexOutput Function %45
101 %46 = OpAccessChain %_ptr_Function_v4float %out %uint_0
102 OpStore %46 %48
103 %49 = OpAccessChain %_ptr_Function_v4uint %out %uint_1
104 %51 = OpFunctionCall %v4uint %textureLoad_276a2c
105 OpStore %49 %51
106 %52 = OpLoad %VertexOutput %out
107 OpReturnValue %52
108 OpFunctionEnd
109%vertex_main = OpFunction %void None %29
110 %54 = OpLabel
111 %55 = OpFunctionCall %VertexOutput %vertex_main_inner
112 %56 = OpCompositeExtract %v4float %55 0
113 OpStore %vertex_main_position_Output %56
114 %57 = OpCompositeExtract %v4uint %55 1
115 OpStore %vertex_main_loc0_Output %57
116 OpStore %vertex_main___point_size_Output %float_1
117 OpReturn
118 OpFunctionEnd