blob: 0bbb8d5e2b2787c4abb496d0328473f759116112 [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: 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_83162f "textureLoad_83162f"
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 NonWritable
30 OpDecorate %arg_0 DescriptorSet 1
31 OpDecorate %arg_0 Binding 0
32 OpDecorate %prevent_dce_block Block
33 OpMemberDecorate %prevent_dce_block 0 Offset 0
34 OpDecorate %prevent_dce DescriptorSet 2
35 OpDecorate %prevent_dce Binding 0
36 %float = OpTypeFloat 32
37 %v4float = OpTypeVector %float 4
38%_ptr_Output_v4float = OpTypePointer Output %v4float
39 %5 = OpConstantNull %v4float
40 %value = OpVariable %_ptr_Output_v4float Output %5
41%_ptr_Output_float = OpTypePointer Output %float
42 %8 = OpConstantNull %float
43%vertex_point_size = OpVariable %_ptr_Output_float Output %8
44 %11 = OpTypeImage %float 3D 0 0 0 2 Rg32f
45%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
46 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
47%prevent_dce_block = OpTypeStruct %v4float
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 %15 = OpTypeFunction %void
52 %uint = OpTypeInt 32 0
53 %v3uint = OpTypeVector %uint 3
54 %uint_1 = OpConstant %uint 1
55 %22 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
56%_ptr_Function_v3uint = OpTypePointer Function %v3uint
57 %25 = OpConstantNull %v3uint
58%_ptr_Function_v4float = OpTypePointer Function %v4float
59 %uint_0 = OpConstant %uint 0
60%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
61 %35 = OpTypeFunction %v4float
62 %float_1 = OpConstant %float 1
63%textureLoad_83162f = OpFunction %void None %15
64 %18 = OpLabel
65 %arg_1 = OpVariable %_ptr_Function_v3uint Function %25
66 %res = OpVariable %_ptr_Function_v4float Function %5
67 OpStore %arg_1 %22
68 %27 = OpLoad %11 %arg_0
69 %28 = OpLoad %v3uint %arg_1
70 %26 = OpImageRead %v4float %27 %28
71 OpStore %res %26
72 %33 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
73 %34 = OpLoad %v4float %res
74 OpStore %33 %34
75 OpReturn
76 OpFunctionEnd
77%vertex_main_inner = OpFunction %v4float None %35
78 %37 = OpLabel
79 %38 = OpFunctionCall %void %textureLoad_83162f
80 OpReturnValue %5
81 OpFunctionEnd
82%vertex_main = OpFunction %void None %15
83 %40 = OpLabel
84 %41 = OpFunctionCall %v4float %vertex_main_inner
85 OpStore %value %41
86 OpStore %vertex_point_size %float_1
87 OpReturn
88 OpFunctionEnd
89%fragment_main = OpFunction %void None %15
90 %44 = OpLabel
91 %45 = OpFunctionCall %void %textureLoad_83162f
92 OpReturn
93 OpFunctionEnd
94%compute_main = OpFunction %void None %15
95 %47 = OpLabel
96 %48 = OpFunctionCall %void %textureLoad_83162f
97 OpReturn
98 OpFunctionEnd