blob: 66185528756993d76a7611a93e50c734f5677486 [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: 44
5; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
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_c02b74 "textureLoad_c02b74"
21 OpName %res "res"
22 OpName %vertex_main_inner "vertex_main_inner"
23 OpName %vertex_main "vertex_main"
24 OpName %fragment_main "fragment_main"
25 OpName %compute_main "compute_main"
26 OpDecorate %value BuiltIn Position
27 OpDecorate %vertex_point_size BuiltIn PointSize
28 OpDecorate %arg_0 NonWritable
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 Rgba16f
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 %int = OpTypeInt 32 1
52 %int_1 = OpConstant %int 1
53%_ptr_Function_v4float = OpTypePointer Function %v4float
54 %uint = OpTypeInt 32 0
55 %uint_0 = OpConstant %uint 0
56%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
57 %30 = OpTypeFunction %v4float
58 %float_1 = OpConstant %float 1
59%textureLoad_c02b74 = OpFunction %void None %15
60 %18 = OpLabel
61 %res = OpVariable %_ptr_Function_v4float Function %5
62 %20 = OpLoad %11 %arg_0
63 %19 = OpImageRead %v4float %20 %int_1
64 OpStore %res %19
65 %28 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
66 %29 = OpLoad %v4float %res
67 OpStore %28 %29
68 OpReturn
69 OpFunctionEnd
70%vertex_main_inner = OpFunction %v4float None %30
71 %32 = OpLabel
72 %33 = OpFunctionCall %void %textureLoad_c02b74
73 OpReturnValue %5
74 OpFunctionEnd
75%vertex_main = OpFunction %void None %15
76 %35 = OpLabel
77 %36 = OpFunctionCall %v4float %vertex_main_inner
78 OpStore %value %36
79 OpStore %vertex_point_size %float_1
80 OpReturn
81 OpFunctionEnd
82%fragment_main = OpFunction %void None %15
83 %39 = OpLabel
84 %40 = OpFunctionCall %void %textureLoad_c02b74
85 OpReturn
86 OpFunctionEnd
87%compute_main = OpFunction %void None %15
88 %42 = OpLabel
89 %43 = OpFunctionCall %void %textureLoad_c02b74
90 OpReturn
91 OpFunctionEnd