blob: f89cd38a6f4dcf826ed22959db20a828a37b6ca9 [file] [log] [blame]
James Price88c231b2023-08-15 12:47:28 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 54
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_7dab57 "textureLoad_7dab57"
21 OpName %res "res"
22 OpName %vertex_main_inner "vertex_main_inner"
23 OpName %vertex_main "vertex_main"
24 OpName %fragment_main "fragment_main"
25 OpName %compute_main "compute_main"
26 OpDecorate %value BuiltIn Position
27 OpDecorate %vertex_point_size BuiltIn PointSize
28 OpDecorate %arg_0 NonWritable
29 OpDecorate %arg_0 DescriptorSet 1
30 OpDecorate %arg_0 Binding 0
31 OpDecorate %prevent_dce_block Block
32 OpMemberDecorate %prevent_dce_block 0 Offset 0
33 OpDecorate %prevent_dce DescriptorSet 2
34 OpDecorate %prevent_dce Binding 0
35 %float = OpTypeFloat 32
36 %v4float = OpTypeVector %float 4
37%_ptr_Output_v4float = OpTypePointer Output %v4float
38 %5 = OpConstantNull %v4float
39 %value = OpVariable %_ptr_Output_v4float Output %5
40%_ptr_Output_float = OpTypePointer Output %float
41 %8 = OpConstantNull %float
42%vertex_point_size = OpVariable %_ptr_Output_float Output %8
43 %int = OpTypeInt 32 1
44 %11 = OpTypeImage %int 2D 0 1 0 2 Rg32i
45%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
46 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
47 %v4int = OpTypeVector %int 4
48%prevent_dce_block = OpTypeStruct %v4int
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 %17 = OpTypeFunction %void
53 %uint = OpTypeInt 32 0
54 %v3uint = OpTypeVector %uint 3
55 %v2uint = OpTypeVector %uint 2
56 %uint_1 = OpConstant %uint 1
57 %27 = OpConstantComposite %v2uint %uint_1 %uint_1
58 %int_1 = OpConstant %int 1
59%_ptr_Function_v4int = OpTypePointer Function %v4int
60 %35 = OpConstantNull %v4int
61 %uint_0 = OpConstant %uint 0
62%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
63 %40 = OpTypeFunction %v4float
64 %float_1 = OpConstant %float 1
65%textureLoad_7dab57 = OpFunction %void None %17
66 %20 = OpLabel
67 %res = OpVariable %_ptr_Function_v4int Function %35
68 %22 = OpLoad %11 %arg_0
69 %28 = OpCompositeExtract %uint %27 0
70 %29 = OpCompositeExtract %uint %27 1
71 %30 = OpBitcast %uint %int_1
72 %32 = OpCompositeConstruct %v3uint %28 %29 %30
73 %21 = OpImageRead %v4int %22 %32
74 OpStore %res %21
75 %38 = OpAccessChain %_ptr_StorageBuffer_v4int %prevent_dce %uint_0
76 %39 = OpLoad %v4int %res
77 OpStore %38 %39
78 OpReturn
79 OpFunctionEnd
80%vertex_main_inner = OpFunction %v4float None %40
81 %42 = OpLabel
82 %43 = OpFunctionCall %void %textureLoad_7dab57
83 OpReturnValue %5
84 OpFunctionEnd
85%vertex_main = OpFunction %void None %17
86 %45 = OpLabel
87 %46 = OpFunctionCall %v4float %vertex_main_inner
88 OpStore %value %46
89 OpStore %vertex_point_size %float_1
90 OpReturn
91 OpFunctionEnd
92%fragment_main = OpFunction %void None %17
93 %49 = OpLabel
94 %50 = OpFunctionCall %void %textureLoad_7dab57
95 OpReturn
96 OpFunctionEnd
97%compute_main = OpFunction %void None %17
98 %52 = OpLabel
99 %53 = OpFunctionCall %void %textureLoad_7dab57
100 OpReturn
101 OpFunctionEnd