| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 47 |
| ; Schema: 0 |
| OpCapability Shader |
| %37 = 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" |
| OpMemberName %A 0 "b" |
| OpMemberName %A 1 "c" |
| OpName %A "A" |
| 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 |
| %A = OpTypeStruct %v2uint %uint |
| %uint_2 = OpConstant %uint 2 |
| %_arr_A_uint_2 = OpTypeArray %A %uint_2 |
| %_ptr_Private__arr_A_uint_2 = OpTypePointer Private %_arr_A_uint_2 |
| %uint_1 = OpConstant %uint 1 |
| %14 = OpConstantComposite %v2uint %uint_1 %uint_2 |
| %uint_3 = OpConstant %uint 3 |
| %13 = OpConstantComposite %A %14 %uint_3 |
| %uint_4 = OpConstant %uint 4 |
| %uint_5 = OpConstant %uint 5 |
| %18 = OpConstantComposite %v2uint %uint_4 %uint_5 |
| %uint_6 = OpConstant %uint 6 |
| %17 = OpConstantComposite %A %18 %uint_6 |
| %12 = OpConstantComposite %_arr_A_uint_2 %13 %17 |
| %6 = OpVariable %_ptr_Private__arr_A_uint_2 Private %12 |
| %void = OpTypeVoid |
| %24 = 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 %24 |
| %25 = OpLabel |
| %q = OpVariable %_ptr_Function_uint Function |
| OpStore %q %uint_0 |
| %29 = OpAccessChain %_ptr_StorageBuffer__runtimearr_uint %1 %uint_0 |
| %31 = OpArrayLength %uint %1 0 |
| %32 = OpISub %uint %31 %uint_1 |
| %33 = OpBitcast %uint %int_0 |
| %36 = OpExtInst %uint %37 UMin %33 %32 |
| %38 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %36 |
| %40 = OpLoad %uint %q None |
| %41 = OpExtInst %uint %37 UMin %40 %uint_1 |
| %42 = OpAccessChain %_ptr_Private_v2uint %6 %41 %uint_0 |
| %44 = OpAccessChain %_ptr_Private_uint %42 %uint_0 |
| %46 = OpLoad %uint %44 None |
| OpStore %38 %46 None |
| OpReturn |
| OpFunctionEnd |