blob: 2d2c1d27c4bf7f158f450dfe496bf48cab6ec8f9 [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: 30
5; Schema: 0
6 OpCapability Shader
7 OpCapability StorageImageExtendedFormats
8 OpCapability ImageQuery
9 OpMemoryModel Logical GLSL450
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 OpMemberName %tint_symbol_1 0 "tint_symbol"
15 OpName %tint_symbol_1 "tint_symbol_1"
16 OpName %arg_0 "arg_0"
17 OpName %textureDimensions_8a35f9 "textureDimensions_8a35f9"
18 OpName %res "res"
19 OpName %fragment_main "fragment_main"
20 OpName %compute_main "compute_main"
21 OpMemberDecorate %tint_symbol_1 0 Offset 0
22 OpDecorate %tint_symbol_1 Block
23 OpDecorate %1 DescriptorSet 0
24 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000025 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000026 OpDecorate %arg_0 DescriptorSet 1
27 OpDecorate %arg_0 Binding 0
28 OpDecorate %arg_0 NonReadable
29 %uint = OpTypeInt 32 0
30 %v2uint = OpTypeVector %uint 2
31%tint_symbol_1 = OpTypeStruct %v2uint
32%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
33 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
34 %float = OpTypeFloat 32
35 %8 = OpTypeImage %float 2D 0 0 0 2 Rg32f
36%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
37 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
38 %11 = OpTypeFunction %v2uint
39%_ptr_Function_v2uint = OpTypePointer Function %v2uint
40 %void = OpTypeVoid
41 %20 = OpTypeFunction %void
42%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
43 %uint_0 = OpConstant %uint 0
44%textureDimensions_8a35f9 = OpFunction %v2uint None %11
45 %12 = OpLabel
46 %res = OpVariable %_ptr_Function_v2uint Function
dan sinclair50260412024-08-28 19:43:27 +000047 %13 = OpLoad %8 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000048 %14 = OpImageQuerySize %v2uint %13
49 OpStore %res %14
dan sinclair50260412024-08-28 19:43:27 +000050 %17 = OpLoad %v2uint %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000051 OpReturnValue %17
52 OpFunctionEnd
53%fragment_main = OpFunction %void None %20
54 %21 = OpLabel
55 %22 = OpFunctionCall %v2uint %textureDimensions_8a35f9
56 %23 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000057 OpStore %23 %22 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000058 OpReturn
59 OpFunctionEnd
60%compute_main = OpFunction %void None %20
61 %27 = OpLabel
62 %28 = OpFunctionCall %v2uint %textureDimensions_8a35f9
63 %29 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000064 OpStore %29 %28 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000065 OpReturn
66 OpFunctionEnd