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