| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 30 |
| ; 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_1 = OpConstant %uint 1 |
| %uint_10 = OpConstant %uint 10 |
| %bool = OpTypeBool |
| %main = OpFunction %void None %7 |
| %8 = OpLabel |
| OpBranch %9 |
| %9 = OpLabel |
| %14 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| %17 = OpLoad %uint %14 None |
| %18 = OpIAdd %uint %17 %uint_1 |
| %20 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| OpStore %20 %18 None |
| OpBranch %12 |
| %12 = OpLabel |
| OpLoopMerge %13 %11 None |
| OpBranch %10 |
| %10 = OpLabel |
| %21 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| %22 = OpLoad %uint %21 None |
| %23 = OpULessThan %bool %22 %uint_10 |
| OpSelectionMerge %26 None |
| OpBranchConditional %23 %26 %27 |
| %27 = OpLabel |
| OpBranch %13 |
| %26 = OpLabel |
| OpBranch %11 |
| %11 = OpLabel |
| OpBranch %12 |
| %13 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %7 |
| %29 = OpLabel |
| OpReturn |
| OpFunctionEnd |