| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 42 |
| ; Schema: 0 |
| OpCapability Shader |
| %32 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %s_block_tint_explicit_layout 0 "inner" |
| OpName %s_block_tint_explicit_layout "s_block_tint_explicit_layout" |
| OpName %main "main" |
| OpName %q "q" |
| OpDecorate %_runtimearr_uint ArrayStride 4 |
| OpMemberDecorate %s_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %s_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| %uint = OpTypeInt 32 0 |
| %_runtimearr_uint = OpTypeRuntimeArray %uint |
| %s_block_tint_explicit_layout = OpTypeStruct %_runtimearr_uint |
| %_ptr_StorageBuffer_s_block_tint_explicit_layout = OpTypePointer StorageBuffer %s_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_s_block_tint_explicit_layout StorageBuffer |
| %v2uint = OpTypeVector %uint 2 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_v2uint_uint_2 = OpTypeArray %v2uint %uint_2 |
| %_ptr_Private__arr_v2uint_uint_2 = OpTypePointer Private %_arr_v2uint_uint_2 |
| %uint_1 = OpConstant %uint 1 |
| %12 = OpConstantComposite %v2uint %uint_1 %uint_2 |
| %uint_3 = OpConstant %uint 3 |
| %uint_4 = OpConstant %uint 4 |
| %14 = OpConstantComposite %v2uint %uint_3 %uint_4 |
| %11 = OpConstantComposite %_arr_v2uint_uint_2 %12 %14 |
| %6 = OpVariable %_ptr_Private__arr_v2uint_uint_2 Private %11 |
| %void = OpTypeVoid |
| %19 = OpTypeFunction %void |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer__runtimearr_uint = OpTypePointer StorageBuffer %_runtimearr_uint |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %_ptr_Private_v2uint = OpTypePointer Private %v2uint |
| %_ptr_Private_uint = OpTypePointer Private %uint |
| %main = OpFunction %void None %19 |
| %20 = OpLabel |
| %q = OpVariable %_ptr_Function_uint Function |
| OpStore %q %uint_0 |
| %24 = OpAccessChain %_ptr_StorageBuffer__runtimearr_uint %1 %uint_0 |
| %26 = OpArrayLength %uint %1 0 |
| %27 = OpISub %uint %26 %uint_1 |
| %28 = OpBitcast %uint %int_0 |
| %31 = OpExtInst %uint %32 UMin %28 %27 |
| %33 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %31 |
| %35 = OpLoad %uint %q None |
| %36 = OpExtInst %uint %32 UMin %35 %uint_1 |
| %37 = OpAccessChain %_ptr_Private_v2uint %6 %36 |
| %39 = OpAccessChain %_ptr_Private_uint %37 %uint_0 |
| %41 = OpLoad %uint %39 None |
| OpStore %33 %41 None |
| OpReturn |
| OpFunctionEnd |