blob: 7d8b7eb0ef5c76f9bb337d4a45326334215a8c94 [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 29
5; Schema: 0
6 OpCapability Shader
7 OpCapability ImageQuery
8 OpMemoryModel Logical GLSL450
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 OpMemberName %tint_symbol_1 0 "tint_symbol"
14 OpName %tint_symbol_1 "tint_symbol_1"
15 OpName %arg_0 "arg_0"
16 OpName %textureDimensions_35a7e5 "textureDimensions_35a7e5"
17 OpName %res "res"
18 OpName %fragment_main "fragment_main"
19 OpName %compute_main "compute_main"
20 OpMemberDecorate %tint_symbol_1 0 Offset 0
21 OpDecorate %tint_symbol_1 Block
22 OpDecorate %1 DescriptorSet 0
23 OpDecorate %1 Binding 0
24 OpDecorate %arg_0 DescriptorSet 1
25 OpDecorate %arg_0 Binding 0
26 OpDecorate %arg_0 NonReadable
27 %uint = OpTypeInt 32 0
28 %v3uint = OpTypeVector %uint 3
29%tint_symbol_1 = OpTypeStruct %v3uint
30%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
31 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
32 %8 = OpTypeImage %uint 3D 0 0 0 2 Rgba16ui
33%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
34 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
35 %10 = OpTypeFunction %v3uint
36%_ptr_Function_v3uint = OpTypePointer Function %v3uint
37 %void = OpTypeVoid
38 %19 = OpTypeFunction %void
39%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
40 %uint_0 = OpConstant %uint 0
41%textureDimensions_35a7e5 = OpFunction %v3uint None %10
42 %11 = OpLabel
43 %res = OpVariable %_ptr_Function_v3uint Function
44 %12 = OpLoad %8 %arg_0
45 %13 = OpImageQuerySize %v3uint %12
46 OpStore %res %13
47 %16 = OpLoad %v3uint %res
48 OpReturnValue %16
49 OpFunctionEnd
50%fragment_main = OpFunction %void None %19
51 %20 = OpLabel
52 %21 = OpFunctionCall %v3uint %textureDimensions_35a7e5
53 %22 = OpAccessChain %_ptr_StorageBuffer_v3uint %1 %uint_0
54 OpStore %22 %21
55 OpReturn
56 OpFunctionEnd
57%compute_main = OpFunction %void None %19
58 %26 = OpLabel
59 %27 = OpFunctionCall %v3uint %textureDimensions_35a7e5
60 %28 = OpAccessChain %_ptr_StorageBuffer_v3uint %1 %uint_0
61 OpStore %28 %27
62 OpReturn
63 OpFunctionEnd