| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 25 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %output_block "output_block" |
| OpMemberName %output_block 0 "inner" |
| OpName %output "output" |
| OpName %main "main" |
| OpDecorate %output_block Block |
| OpMemberDecorate %output_block 0 Offset 0 |
| OpDecorate %_arr_uint_uint_2 ArrayStride 4 |
| OpDecorate %output DescriptorSet 0 |
| OpDecorate %output Binding 0 |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_uint_uint_2 = OpTypeArray %uint %uint_2 |
| %output_block = OpTypeStruct %_arr_uint_uint_2 |
| %_ptr_StorageBuffer_output_block = OpTypePointer StorageBuffer %output_block |
| %output = OpVariable %_ptr_StorageBuffer_output_block StorageBuffer |
| %void = OpTypeVoid |
| %7 = OpTypeFunction %void |
| %bool = OpTypeBool |
| %12 = OpConstantNull %bool |
| %uint_0 = OpConstant %uint 0 |
| %int = OpTypeInt 32 1 |
| %17 = OpConstantNull %int |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %uint_1 = OpConstant %uint 1 |
| %int_1 = OpConstant %int 1 |
| %main = OpFunction %void None %7 |
| %10 = OpLabel |
| OpSelectionMerge %13 None |
| OpBranchConditional %12 %14 %13 |
| %14 = OpLabel |
| %19 = OpAccessChain %_ptr_StorageBuffer_uint %output %uint_0 %17 |
| OpStore %19 %uint_1 |
| OpBranch %13 |
| %13 = OpLabel |
| OpSelectionMerge %21 None |
| OpBranchConditional %12 %22 %21 |
| %22 = OpLabel |
| %24 = OpAccessChain %_ptr_StorageBuffer_uint %output %uint_0 %int_1 |
| OpStore %24 %uint_1 |
| OpBranch %21 |
| %21 = OpLabel |
| OpReturn |
| OpFunctionEnd |