| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 68 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %main "main" |
| OpName %v2f "v2f" |
| OpName %v2f_2 "v2f_2" |
| OpName %v3i "v3i" |
| OpName %v3i_2 "v3i_2" |
| OpName %v4u "v4u" |
| OpName %v4u_2 "v4u_2" |
| OpName %v2b "v2b" |
| OpName %v2b_2 "v2b_2" |
| OpName %i "i" |
| %void = OpTypeVoid |
| %1 = OpTypeFunction %void |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %9 = OpConstantNull %v2float |
| %int = OpTypeInt 32 1 |
| %v3int = OpTypeVector %int 3 |
| %_ptr_Function_v3int = OpTypePointer Function %v3int |
| %15 = OpConstantNull %v3int |
| %uint = OpTypeInt 32 0 |
| %v4uint = OpTypeVector %uint 4 |
| %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| %21 = OpConstantNull %v4uint |
| %bool = OpTypeBool |
| %v2bool = OpTypeVector %bool 2 |
| %_ptr_Function_v2bool = OpTypePointer Function %v2bool |
| %27 = OpConstantNull %v2bool |
| %int_0 = OpConstant %int 0 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %32 = OpConstantNull %int |
| %int_2 = OpConstant %int 2 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %float_1 = OpConstant %float 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Function_bool = OpTypePointer Function %bool |
| %true = OpConstantTrue %bool |
| %main = OpFunction %void None %1 |
| %4 = OpLabel |
| %v2f = OpVariable %_ptr_Function_v2float Function %9 |
| %v2f_2 = OpVariable %_ptr_Function_v2float Function %9 |
| %v3i = OpVariable %_ptr_Function_v3int Function %15 |
| %v3i_2 = OpVariable %_ptr_Function_v3int Function %15 |
| %v4u = OpVariable %_ptr_Function_v4uint Function %21 |
| %v4u_2 = OpVariable %_ptr_Function_v4uint Function %21 |
| %v2b = OpVariable %_ptr_Function_v2bool Function %27 |
| %v2b_2 = OpVariable %_ptr_Function_v2bool Function %27 |
| %i = OpVariable %_ptr_Function_int Function %32 |
| OpStore %i %int_0 |
| OpBranch %33 |
| %33 = OpLabel |
| OpLoopMerge %34 %35 None |
| OpBranch %36 |
| %36 = OpLabel |
| %38 = OpLoad %int %i |
| %40 = OpSLessThan %bool %38 %int_2 |
| %37 = OpLogicalNot %bool %40 |
| OpSelectionMerge %41 None |
| OpBranchConditional %37 %42 %41 |
| %42 = OpLabel |
| OpBranch %34 |
| %41 = OpLabel |
| %43 = OpLoad %int %i |
| %45 = OpAccessChain %_ptr_Function_float %v2f %43 |
| OpStore %45 %float_1 |
| %47 = OpLoad %int %i |
| %48 = OpAccessChain %_ptr_Function_int %v3i %47 |
| OpStore %48 %int_1 |
| %50 = OpLoad %int %i |
| %52 = OpAccessChain %_ptr_Function_uint %v4u %50 |
| OpStore %52 %uint_1 |
| %54 = OpLoad %int %i |
| %56 = OpAccessChain %_ptr_Function_bool %v2b %54 |
| OpStore %56 %true |
| %58 = OpLoad %int %i |
| %59 = OpAccessChain %_ptr_Function_float %v2f_2 %58 |
| OpStore %59 %float_1 |
| %60 = OpLoad %int %i |
| %61 = OpAccessChain %_ptr_Function_int %v3i_2 %60 |
| OpStore %61 %int_1 |
| %62 = OpLoad %int %i |
| %63 = OpAccessChain %_ptr_Function_uint %v4u_2 %62 |
| OpStore %63 %uint_1 |
| %64 = OpLoad %int %i |
| %65 = OpAccessChain %_ptr_Function_bool %v2b_2 %64 |
| OpStore %65 %true |
| OpBranch %35 |
| %35 = OpLabel |
| %66 = OpLoad %int %i |
| %67 = OpIAdd %int %66 %int_1 |
| OpStore %i %67 |
| OpBranch %33 |
| %34 = OpLabel |
| OpReturn |
| OpFunctionEnd |