blob: d23a18d1bea84c52605bce24ed6340ea35217523 [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: 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 %textureDimensions_790e57 "textureDimensions_790e57"
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 %int = OpTypeInt 32 1
44 %11 = OpTypeImage %int 3D 0 0 0 2 Rgba8i
45%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
46 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
47 %uint = OpTypeInt 32 0
48 %v3uint = OpTypeVector %uint 3
49%prevent_dce_block = OpTypeStruct %v3uint
50%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
51%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
52 %void = OpTypeVoid
53 %18 = OpTypeFunction %void
54%_ptr_Function_v3uint = OpTypePointer Function %v3uint
55 %26 = OpConstantNull %v3uint
56 %uint_0 = OpConstant %uint 0
57%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
58 %31 = OpTypeFunction %v4float
59 %float_1 = OpConstant %float 1
60%textureDimensions_790e57 = OpFunction %void None %18
61 %21 = OpLabel
62 %res = OpVariable %_ptr_Function_v3uint Function %26
63 %23 = OpLoad %11 %arg_0
64 %22 = OpImageQuerySize %v3uint %23
65 OpStore %res %22
66 %29 = OpAccessChain %_ptr_StorageBuffer_v3uint %prevent_dce %uint_0
67 %30 = OpLoad %v3uint %res
68 OpStore %29 %30
69 OpReturn
70 OpFunctionEnd
71%vertex_main_inner = OpFunction %v4float None %31
72 %33 = OpLabel
73 %34 = OpFunctionCall %void %textureDimensions_790e57
74 OpReturnValue %5
75 OpFunctionEnd
76%vertex_main = OpFunction %void None %18
77 %36 = OpLabel
78 %37 = OpFunctionCall %v4float %vertex_main_inner
79 OpStore %value %37
80 OpStore %vertex_point_size %float_1
81 OpReturn
82 OpFunctionEnd
83%fragment_main = OpFunction %void None %18
84 %40 = OpLabel
85 %41 = OpFunctionCall %void %textureDimensions_790e57
86 OpReturn
87 OpFunctionEnd
88%compute_main = OpFunction %void None %18
89 %43 = OpLabel
90 %44 = OpFunctionCall %void %textureDimensions_790e57
91 OpReturn
92 OpFunctionEnd