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