blob: 3a223666b37b8054b74380d17db3ea19e61b9ea9 [file] [log] [blame]
Ben Clayton448c01b2024-02-28 00:23:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 43
5; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
8 OpCapability StorageImageExtendedFormats
9 OpMemoryModel Logical GLSL450
10 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
11 OpEntryPoint Fragment %fragment_main "fragment_main"
12 OpEntryPoint GLCompute %compute_main "compute_main"
13 OpExecutionMode %fragment_main OriginUpperLeft
14 OpExecutionMode %compute_main LocalSize 1 1 1
15 OpName %value "value"
16 OpName %vertex_point_size "vertex_point_size"
17 OpName %arg_0 "arg_0"
18 OpName %prevent_dce_block "prevent_dce_block"
19 OpMemberName %prevent_dce_block 0 "inner"
20 OpName %prevent_dce "prevent_dce"
21 OpName %textureLoad_92dd61 "textureLoad_92dd61"
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 1D 0 0 0 2 R8
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 %uint_1 = OpConstant %uint 1
53%_ptr_Function_v4float = OpTypePointer Function %v4float
54 %uint_0 = OpConstant %uint 0
55%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
56 %29 = OpTypeFunction %v4float
57 %float_1 = OpConstant %float 1
58%textureLoad_92dd61 = OpFunction %void None %15
59 %18 = OpLabel
60 %res = OpVariable %_ptr_Function_v4float Function %5
61 %20 = OpLoad %11 %arg_0
62 %19 = OpImageRead %v4float %20 %uint_1
63 OpStore %res %19
64 %27 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
65 %28 = OpLoad %v4float %res
66 OpStore %27 %28
67 OpReturn
68 OpFunctionEnd
69%vertex_main_inner = OpFunction %v4float None %29
70 %31 = OpLabel
71 %32 = OpFunctionCall %void %textureLoad_92dd61
72 OpReturnValue %5
73 OpFunctionEnd
74%vertex_main = OpFunction %void None %15
75 %34 = OpLabel
76 %35 = OpFunctionCall %v4float %vertex_main_inner
77 OpStore %value %35
78 OpStore %vertex_point_size %float_1
79 OpReturn
80 OpFunctionEnd
81%fragment_main = OpFunction %void None %15
82 %38 = OpLabel
83 %39 = OpFunctionCall %void %textureLoad_92dd61
84 OpReturn
85 OpFunctionEnd
86%compute_main = OpFunction %void None %15
87 %41 = OpLabel
88 %42 = OpFunctionCall %void %textureLoad_92dd61
89 OpReturn
90 OpFunctionEnd