blob: c91e74bcd77d138662d8b6966092eaa24461b679 [file] [log] [blame]
Ben Clayton448c01b2024-02-28 00:23:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 58
5; Schema: 0
6 OpCapability Shader
7 OpCapability StorageImageExtendedFormats
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
10 OpEntryPoint Fragment %fragment_main "fragment_main"
11 OpEntryPoint GLCompute %compute_main "compute_main"
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpName %value "value"
15 OpName %vertex_point_size "vertex_point_size"
16 OpName %arg_0 "arg_0"
17 OpName %prevent_dce_block "prevent_dce_block"
18 OpMemberName %prevent_dce_block 0 "inner"
19 OpName %prevent_dce "prevent_dce"
20 OpName %textureLoad_35d464 "textureLoad_35d464"
21 OpName %arg_1 "arg_1"
22 OpName %arg_2 "arg_2"
23 OpName %res "res"
24 OpName %vertex_main_inner "vertex_main_inner"
25 OpName %vertex_main "vertex_main"
26 OpName %fragment_main "fragment_main"
27 OpName %compute_main "compute_main"
28 OpDecorate %value BuiltIn Position
29 OpDecorate %vertex_point_size BuiltIn PointSize
30 OpDecorate %arg_0 NonWritable
31 OpDecorate %arg_0 DescriptorSet 1
32 OpDecorate %arg_0 Binding 0
33 OpDecorate %prevent_dce_block Block
34 OpMemberDecorate %prevent_dce_block 0 Offset 0
35 OpDecorate %prevent_dce DescriptorSet 2
36 OpDecorate %prevent_dce Binding 0
37 %float = OpTypeFloat 32
38 %v4float = OpTypeVector %float 4
39%_ptr_Output_v4float = OpTypePointer Output %v4float
40 %5 = OpConstantNull %v4float
41 %value = OpVariable %_ptr_Output_v4float Output %5
42%_ptr_Output_float = OpTypePointer Output %float
43 %8 = OpConstantNull %float
44%vertex_point_size = OpVariable %_ptr_Output_float Output %8
45 %11 = OpTypeImage %float 2D 0 1 0 2 R8
46%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
47 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
48%prevent_dce_block = OpTypeStruct %v4float
49%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
50%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
51 %void = OpTypeVoid
52 %15 = OpTypeFunction %void
53 %int = OpTypeInt 32 1
54 %v2int = OpTypeVector %int 2
55 %int_1 = OpConstant %int 1
56 %22 = OpConstantComposite %v2int %int_1 %int_1
57%_ptr_Function_v2int = OpTypePointer Function %v2int
58 %25 = OpConstantNull %v2int
59%_ptr_Function_int = OpTypePointer Function %int
60 %28 = OpConstantNull %int
61 %v3int = OpTypeVector %int 3
62%_ptr_Function_v4float = OpTypePointer Function %v4float
63 %uint = OpTypeInt 32 0
64 %uint_0 = OpConstant %uint 0
65%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
66 %44 = OpTypeFunction %v4float
67 %float_1 = OpConstant %float 1
68%textureLoad_35d464 = OpFunction %void None %15
69 %18 = OpLabel
70 %arg_1 = OpVariable %_ptr_Function_v2int Function %25
71 %arg_2 = OpVariable %_ptr_Function_int Function %28
72 %res = OpVariable %_ptr_Function_v4float Function %5
73 OpStore %arg_1 %22
74 OpStore %arg_2 %int_1
75 %30 = OpLoad %11 %arg_0
76 %32 = OpLoad %v2int %arg_1
77 %33 = OpCompositeExtract %int %32 0
78 %34 = OpCompositeExtract %int %32 1
79 %35 = OpLoad %int %arg_2
80 %36 = OpCompositeConstruct %v3int %33 %34 %35
81 %29 = OpImageRead %v4float %30 %36
82 OpStore %res %29
83 %42 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
84 %43 = OpLoad %v4float %res
85 OpStore %42 %43
86 OpReturn
87 OpFunctionEnd
88%vertex_main_inner = OpFunction %v4float None %44
89 %46 = OpLabel
90 %47 = OpFunctionCall %void %textureLoad_35d464
91 OpReturnValue %5
92 OpFunctionEnd
93%vertex_main = OpFunction %void None %15
94 %49 = OpLabel
95 %50 = OpFunctionCall %v4float %vertex_main_inner
96 OpStore %value %50
97 OpStore %vertex_point_size %float_1
98 OpReturn
99 OpFunctionEnd
100%fragment_main = OpFunction %void None %15
101 %53 = OpLabel
102 %54 = OpFunctionCall %void %textureLoad_35d464
103 OpReturn
104 OpFunctionEnd
105%compute_main = OpFunction %void None %15
106 %56 = OpLabel
107 %57 = OpFunctionCall %void %textureLoad_35d464
108 OpReturn
109 OpFunctionEnd