blob: d3b120198687784066f9e7a3d9a97bd0e4d93a17 [file] [log] [blame]
James Price1ffc5982023-08-11 00:45:54 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 47
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_26b8f6 "textureLoad_26b8f6"
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 DescriptorSet 1
28 OpDecorate %arg_0 Binding 0
29 OpDecorate %prevent_dce_block Block
30 OpMemberDecorate %prevent_dce_block 0 Offset 0
31 OpDecorate %prevent_dce DescriptorSet 2
32 OpDecorate %prevent_dce Binding 0
33 %float = OpTypeFloat 32
34 %v4float = OpTypeVector %float 4
35%_ptr_Output_v4float = OpTypePointer Output %v4float
36 %5 = OpConstantNull %v4float
37 %value = OpVariable %_ptr_Output_v4float Output %5
38%_ptr_Output_float = OpTypePointer Output %float
39 %8 = OpConstantNull %float
40%vertex_point_size = OpVariable %_ptr_Output_float Output %8
41 %uint = OpTypeInt 32 0
42 %11 = OpTypeImage %uint 3D 0 0 0 2 Rgba8ui
43%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
44 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
45 %v4uint = OpTypeVector %uint 4
46%prevent_dce_block = OpTypeStruct %v4uint
47%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
48%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
49 %void = OpTypeVoid
50 %17 = OpTypeFunction %void
51 %v3uint = OpTypeVector %uint 3
52 %uint_1 = OpConstant %uint 1
53 %25 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
54%_ptr_Function_v4uint = OpTypePointer Function %v4uint
55 %28 = OpConstantNull %v4uint
56 %uint_0 = OpConstant %uint 0
57%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
58 %33 = OpTypeFunction %v4float
59 %float_1 = OpConstant %float 1
60%textureLoad_26b8f6 = OpFunction %void None %17
61 %20 = OpLabel
62 %res = OpVariable %_ptr_Function_v4uint Function %28
63 %22 = OpLoad %11 %arg_0
64 %21 = OpImageRead %v4uint %22 %25
65 OpStore %res %21
66 %31 = OpAccessChain %_ptr_StorageBuffer_v4uint %prevent_dce %uint_0
67 %32 = OpLoad %v4uint %res
68 OpStore %31 %32
69 OpReturn
70 OpFunctionEnd
71%vertex_main_inner = OpFunction %v4float None %33
72 %35 = OpLabel
73 %36 = OpFunctionCall %void %textureLoad_26b8f6
74 OpReturnValue %5
75 OpFunctionEnd
76%vertex_main = OpFunction %void None %17
77 %38 = OpLabel
78 %39 = OpFunctionCall %v4float %vertex_main_inner
79 OpStore %value %39
80 OpStore %vertex_point_size %float_1
81 OpReturn
82 OpFunctionEnd
83%fragment_main = OpFunction %void None %17
84 %42 = OpLabel
85 %43 = OpFunctionCall %void %textureLoad_26b8f6
86 OpReturn
87 OpFunctionEnd
88%compute_main = OpFunction %void None %17
89 %45 = OpLabel
90 %46 = OpFunctionCall %void %textureLoad_26b8f6
91 OpReturn
92 OpFunctionEnd