blob: 2ae958e04b90c1290d747f711613588650a84196 [file] [log] [blame]
; 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 %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_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