blob: 1c4be3004dd4333c6ebfa2ea42a7c7693fb77005 [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 OpMemoryModel Logical GLSL450
8 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpName %value "value"
14 OpName %vertex_point_size "vertex_point_size"
15 OpName %arg_0 "arg_0"
16 OpName %prevent_dce_block "prevent_dce_block"
17 OpMemberName %prevent_dce_block 0 "inner"
18 OpName %prevent_dce "prevent_dce"
19 OpName %textureLoad_13d539 "textureLoad_13d539"
20 OpName %res "res"
21 OpName %vertex_main_inner "vertex_main_inner"
22 OpName %vertex_main "vertex_main"
23 OpName %fragment_main "fragment_main"
24 OpName %compute_main "compute_main"
25 OpDecorate %value BuiltIn Position
26 OpDecorate %vertex_point_size BuiltIn PointSize
27 OpDecorate %arg_0 NonWritable
28 OpDecorate %arg_0 DescriptorSet 1
29 OpDecorate %arg_0 Binding 0
30 OpDecorate %prevent_dce_block Block
31 OpMemberDecorate %prevent_dce_block 0 Offset 0
32 OpDecorate %prevent_dce DescriptorSet 2
33 OpDecorate %prevent_dce Binding 0
34 %float = OpTypeFloat 32
35 %v4float = OpTypeVector %float 4
36%_ptr_Output_v4float = OpTypePointer Output %v4float
37 %5 = OpConstantNull %v4float
38 %value = OpVariable %_ptr_Output_v4float Output %5
39%_ptr_Output_float = OpTypePointer Output %float
40 %8 = OpConstantNull %float
41%vertex_point_size = OpVariable %_ptr_Output_float Output %8
42 %int = OpTypeInt 32 1
43 %11 = OpTypeImage %int 2D 0 1 0 2 Rgba16i
44%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
45 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
46 %v4int = OpTypeVector %int 4
47%prevent_dce_block = OpTypeStruct %v4int
48%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
49%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
50 %void = OpTypeVoid
51 %17 = OpTypeFunction %void
52 %uint = OpTypeInt 32 0
53 %v3uint = OpTypeVector %uint 3
54 %v2uint = OpTypeVector %uint 2
55 %uint_1 = OpConstant %uint 1
56 %27 = OpConstantComposite %v2uint %uint_1 %uint_1
57 %int_1 = OpConstant %int 1
58%_ptr_Function_v4int = OpTypePointer Function %v4int
59 %35 = OpConstantNull %v4int
60 %uint_0 = OpConstant %uint 0
61%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
62 %40 = OpTypeFunction %v4float
63 %float_1 = OpConstant %float 1
64%textureLoad_13d539 = OpFunction %void None %17
65 %20 = OpLabel
66 %res = OpVariable %_ptr_Function_v4int Function %35
67 %22 = OpLoad %11 %arg_0
68 %28 = OpCompositeExtract %uint %27 0
69 %29 = OpCompositeExtract %uint %27 1
70 %30 = OpBitcast %uint %int_1
71 %32 = OpCompositeConstruct %v3uint %28 %29 %30
72 %21 = OpImageRead %v4int %22 %32
73 OpStore %res %21
74 %38 = OpAccessChain %_ptr_StorageBuffer_v4int %prevent_dce %uint_0
75 %39 = OpLoad %v4int %res
76 OpStore %38 %39
77 OpReturn
78 OpFunctionEnd
79%vertex_main_inner = OpFunction %v4float None %40
80 %42 = OpLabel
81 %43 = OpFunctionCall %void %textureLoad_13d539
82 OpReturnValue %5
83 OpFunctionEnd
84%vertex_main = OpFunction %void None %17
85 %45 = OpLabel
86 %46 = OpFunctionCall %v4float %vertex_main_inner
87 OpStore %value %46
88 OpStore %vertex_point_size %float_1
89 OpReturn
90 OpFunctionEnd
91%fragment_main = OpFunction %void None %17
92 %49 = OpLabel
93 %50 = OpFunctionCall %void %textureLoad_13d539
94 OpReturn
95 OpFunctionEnd
96%compute_main = OpFunction %void None %17
97 %52 = OpLabel
98 %53 = OpFunctionCall %void %textureLoad_13d539
99 OpReturn
100 OpFunctionEnd