blob: 9faf96c2c9d5890d68d7655d6b71d8eda9d23fa6 [file] [log] [blame]
; 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 %i_block 0 "inner"
OpName %i_block "i_block"
OpName %main "main"
OpName %unused_entry_point "unused_entry_point"
OpMemberDecorate %i_block 0 Offset 0
OpDecorate %i_block Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 Coherent
%uint = OpTypeInt 32 0
%i_block = OpTypeStruct %uint
%_ptr_StorageBuffer_i_block = OpTypePointer StorageBuffer %i_block
%1 = OpVariable %_ptr_StorageBuffer_i_block 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 None
%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 None
%24 = OpIAdd %uint %23 %uint_1
%26 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0
OpStore %26 %24 None
OpBranch %11
%12 = OpLabel
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %7
%28 = OpLabel
OpReturn
OpFunctionEnd