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