; SPIR-V | |
; Version: 1.3 | |
; Generator: Google Tint Compiler; 0 | |
; Bound: 29 | |
; Schema: 0 | |
OpCapability Shader | |
OpMemoryModel Logical GLSL450 | |
OpEntryPoint GLCompute %main "main" | |
OpExecutionMode %main LocalSize 1 1 1 | |
OpName %main "main" | |
OpName %i "i" | |
%void = OpTypeVoid | |
%1 = OpTypeFunction %void | |
%int = OpTypeInt 32 1 | |
%6 = OpConstantNull %int | |
%_ptr_Function_int = OpTypePointer Function %int | |
%int_2 = OpConstant %int 2 | |
%bool = OpTypeBool | |
%int_1 = OpConstant %int 1 | |
%main = OpFunction %void None %1 | |
%4 = OpLabel | |
%i = OpVariable %_ptr_Function_int Function %6 | |
OpStore %i %6 | |
OpBranch %9 | |
%9 = OpLabel | |
OpLoopMerge %10 %11 None | |
OpBranch %12 | |
%12 = OpLabel | |
%14 = OpLoad %int %i | |
%16 = OpSLessThan %bool %14 %int_2 | |
%13 = OpLogicalNot %bool %16 | |
OpSelectionMerge %18 None | |
OpBranchConditional %13 %19 %18 | |
%19 = OpLabel | |
OpBranch %10 | |
%18 = OpLabel | |
%21 = OpLoad %int %i | |
OpSelectionMerge %20 None | |
OpSwitch %21 %22 0 %23 1 %24 2 %25 | |
%23 = OpLabel | |
OpBranch %11 | |
%24 = OpLabel | |
OpBranch %11 | |
%25 = OpLabel | |
OpBranch %11 | |
%22 = OpLabel | |
OpBranch %20 | |
%20 = OpLabel | |
OpBranch %11 | |
%11 = OpLabel | |
%26 = OpLoad %int %i | |
%28 = OpIAdd %int %26 %int_1 | |
OpStore %i %28 | |
OpBranch %9 | |
%10 = OpLabel | |
OpReturn | |
OpFunctionEnd |