| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 29 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpMemberName %tint_symbol_1 0 "tint_symbol" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main "main" |
| OpName %unused_entry_point "unused_entry_point" |
| OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| OpDecorate %tint_symbol_1 Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| %uint = OpTypeInt 32 0 |
| %tint_symbol_1 = OpTypeStruct %uint |
| %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| %void = OpTypeVoid |
| %7 = OpTypeFunction %void |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %uint_0 = OpConstant %uint 0 |
| %uint_10 = OpConstant %uint 10 |
| %bool = OpTypeBool |
| %uint_1 = OpConstant %uint 1 |
| %main = OpFunction %void None %7 |
| %8 = OpLabel |
| OpBranch %11 |
| %11 = OpLabel |
| OpLoopMerge %12 %10 None |
| OpBranch %9 |
| %9 = OpLabel |
| %13 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| %16 = OpLoad %uint %13 |
| %17 = OpULessThan %bool %16 %uint_10 |
| OpSelectionMerge %20 None |
| OpBranchConditional %17 %20 %21 |
| %21 = OpLabel |
| OpBranch %12 |
| %20 = OpLabel |
| OpBranch %10 |
| %10 = OpLabel |
| %22 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| %23 = OpLoad %uint %22 |
| %24 = OpIAdd %uint %23 %uint_1 |
| %26 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| OpStore %26 %24 |
| OpBranch %11 |
| %12 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %7 |
| %28 = OpLabel |
| OpReturn |
| OpFunctionEnd |