dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 32 |
| 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_795fbb "textureDimensions_795fbb" |
| 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 | %uint = OpTypeInt 32 0 |
| 27 | %v2uint = OpTypeVector %uint 2 |
| 28 | %tint_symbol_1 = OpTypeStruct %v2uint |
| 29 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 30 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 31 | %float = OpTypeFloat 32 |
| 32 | %8 = OpTypeImage %float 2D 0 1 0 2 Rgba8 |
| 33 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 34 | %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 35 | %11 = OpTypeFunction %v2uint |
| 36 | %v3uint = OpTypeVector %uint 3 |
| 37 | %_ptr_Function_v2uint = OpTypePointer Function %v2uint |
| 38 | %void = OpTypeVoid |
| 39 | %22 = OpTypeFunction %void |
| 40 | %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| 41 | %uint_0 = OpConstant %uint 0 |
| 42 | %textureDimensions_795fbb = OpFunction %v2uint None %11 |
| 43 | %12 = OpLabel |
| 44 | %res = OpVariable %_ptr_Function_v2uint Function |
| 45 | %13 = OpLoad %8 %arg_0 |
| 46 | %14 = OpImageQuerySize %v3uint %13 |
| 47 | %16 = OpVectorShuffle %v2uint %14 %14 0 1 |
| 48 | OpStore %res %16 |
| 49 | %19 = OpLoad %v2uint %res |
| 50 | OpReturnValue %19 |
| 51 | OpFunctionEnd |
| 52 | %fragment_main = OpFunction %void None %22 |
| 53 | %23 = OpLabel |
| 54 | %24 = OpFunctionCall %v2uint %textureDimensions_795fbb |
| 55 | %25 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0 |
| 56 | OpStore %25 %24 |
| 57 | OpReturn |
| 58 | OpFunctionEnd |
| 59 | %compute_main = OpFunction %void None %22 |
| 60 | %29 = OpLabel |
| 61 | %30 = OpFunctionCall %v2uint %textureDimensions_795fbb |
| 62 | %31 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0 |
| 63 | OpStore %31 %30 |
| 64 | OpReturn |
| 65 | OpFunctionEnd |