blob: 09d1d8840ccb1b5771b3beaad06abd75520c7eab [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: 49
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_91ede5 "textureLoad_91ede5"
21 OpName %arg_1 "arg_1"
22 OpName %res "res"
23 OpName %vertex_main_inner "vertex_main_inner"
24 OpName %vertex_main "vertex_main"
25 OpName %fragment_main "fragment_main"
26 OpName %compute_main "compute_main"
27 OpDecorate %value BuiltIn Position
28 OpDecorate %vertex_point_size BuiltIn PointSize
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 %11 = OpTypeImage %float 3D 0 0 0 2 Rg32f
44%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
45 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
46%prevent_dce_block = OpTypeStruct %v4float
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 %15 = OpTypeFunction %void
51 %uint = OpTypeInt 32 0
52 %v3uint = OpTypeVector %uint 3
53 %uint_1 = OpConstant %uint 1
54 %22 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
55%_ptr_Function_v3uint = OpTypePointer Function %v3uint
56 %25 = OpConstantNull %v3uint
57%_ptr_Function_v4float = OpTypePointer Function %v4float
58 %uint_0 = OpConstant %uint 0
59%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
60 %35 = OpTypeFunction %v4float
61 %float_1 = OpConstant %float 1
62%textureLoad_91ede5 = OpFunction %void None %15
63 %18 = OpLabel
64 %arg_1 = OpVariable %_ptr_Function_v3uint Function %25
65 %res = OpVariable %_ptr_Function_v4float Function %5
66 OpStore %arg_1 %22
67 %27 = OpLoad %11 %arg_0
68 %28 = OpLoad %v3uint %arg_1
69 %26 = OpImageRead %v4float %27 %28
70 OpStore %res %26
71 %33 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
72 %34 = OpLoad %v4float %res
73 OpStore %33 %34
74 OpReturn
75 OpFunctionEnd
76%vertex_main_inner = OpFunction %v4float None %35
77 %37 = OpLabel
78 %38 = OpFunctionCall %void %textureLoad_91ede5
79 OpReturnValue %5
80 OpFunctionEnd
81%vertex_main = OpFunction %void None %15
82 %40 = OpLabel
83 %41 = OpFunctionCall %v4float %vertex_main_inner
84 OpStore %value %41
85 OpStore %vertex_point_size %float_1
86 OpReturn
87 OpFunctionEnd
88%fragment_main = OpFunction %void None %15
89 %44 = OpLabel
90 %45 = OpFunctionCall %void %textureLoad_91ede5
91 OpReturn
92 OpFunctionEnd
93%compute_main = OpFunction %void None %15
94 %47 = OpLabel
95 %48 = OpFunctionCall %void %textureLoad_91ede5
96 OpReturn
97 OpFunctionEnd