blob: 555ff40ae913060428ab22d927eb9a2dc86fc863 [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: 45
5; Schema: 0
6 OpCapability Shader
7 OpCapability ImageQuery
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 %textureNumLayers_520086 "textureNumLayers_520086"
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 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 %uint = OpTypeInt 32 0
43 %11 = OpTypeImage %uint 2D 0 1 0 2 R32ui
44%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
45 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
46%prevent_dce_block = OpTypeStruct %uint
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 %16 = OpTypeFunction %void
51 %v3uint = OpTypeVector %uint 3
52%_ptr_Function_uint = OpTypePointer Function %uint
53 %26 = OpConstantNull %uint
54 %uint_0 = OpConstant %uint 0
55%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
56 %31 = OpTypeFunction %v4float
57 %float_1 = OpConstant %float 1
58%textureNumLayers_520086 = OpFunction %void None %16
59 %19 = OpLabel
60 %res = OpVariable %_ptr_Function_uint Function %26
61 %23 = OpLoad %11 %arg_0
62 %21 = OpImageQuerySize %v3uint %23
63 %20 = OpCompositeExtract %uint %21 2
64 OpStore %res %20
65 %29 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0
66 %30 = OpLoad %uint %res
67 OpStore %29 %30
68 OpReturn
69 OpFunctionEnd
70%vertex_main_inner = OpFunction %v4float None %31
71 %33 = OpLabel
72 %34 = OpFunctionCall %void %textureNumLayers_520086
73 OpReturnValue %5
74 OpFunctionEnd
75%vertex_main = OpFunction %void None %16
76 %36 = OpLabel
77 %37 = OpFunctionCall %v4float %vertex_main_inner
78 OpStore %value %37
79 OpStore %vertex_point_size %float_1
80 OpReturn
81 OpFunctionEnd
82%fragment_main = OpFunction %void None %16
83 %40 = OpLabel
84 %41 = OpFunctionCall %void %textureNumLayers_520086
85 OpReturn
86 OpFunctionEnd
87%compute_main = OpFunction %void None %16
88 %43 = OpLabel
89 %44 = OpFunctionCall %void %textureNumLayers_520086
90 OpReturn
91 OpFunctionEnd