| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %_GLF_color |
| OpExecutionMode %main OriginUpperLeft |
| OpSource ESSL 320 |
| OpName %main "main" |
| OpName %func_ "func(" |
| OpName %loop_count "loop_count" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "injectionSwitch" |
| OpName %_ "" |
| OpName %_GLF_color "_GLF_color" |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %buf0 Block |
| OpDecorate %_ DescriptorSet 0 |
| OpDecorate %_ Binding 0 |
| OpDecorate %_GLF_color Location 0 |
| %void = OpTypeVoid |
| %9 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %11 = OpTypeFunction %int |
| %_ptr_Function_int = OpTypePointer Function %int |
| %int_0 = OpConstant %int 0 |
| %int_1 = OpConstant %int 1 |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %buf0 = OpTypeStruct %v2float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %_ = OpVariable %_ptr_Uniform_buf0 Uniform |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %int_100 = OpConstant %int 100 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| %float_1 = OpConstant %float 1 |
| %float_0 = OpConstant %float 0 |
| %28 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %29 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| %main = OpFunction %void None %9 |
| %30 = OpLabel |
| %31 = OpFunctionCall %int %func_ |
| %32 = OpIEqual %bool %31 %int_1 |
| OpSelectionMerge %33 None |
| OpBranchConditional %32 %34 %35 |
| %34 = OpLabel |
| OpStore %_GLF_color %28 |
| OpBranch %33 |
| %35 = OpLabel |
| OpStore %_GLF_color %29 |
| OpBranch %33 |
| %33 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %func_ = OpFunction %int None %11 |
| %36 = OpLabel |
| %loop_count = OpVariable %_ptr_Function_int Function |
| OpStore %loop_count %int_0 |
| OpBranch %37 |
| %37 = OpLabel |
| %38 = OpPhi %int %int_0 %36 %39 %40 |
| OpLoopMerge %41 %40 None |
| OpBranch %42 |
| %42 = OpLabel |
| %43 = OpIAdd %int %38 %int_1 |
| OpStore %loop_count %43 |
| OpBranch %44 |
| %44 = OpLabel |
| %45 = OpPhi %int %43 %42 %39 %46 |
| OpLoopMerge %47 %46 None |
| OpBranch %48 |
| %48 = OpLabel |
| %39 = OpIAdd %int %45 %int_1 |
| OpStore %loop_count %39 |
| %49 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0 |
| %50 = OpLoad %float %49 |
| %51 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1 |
| %52 = OpLoad %float %51 |
| %53 = OpFOrdLessThan %bool %50 %52 |
| OpSelectionMerge %54 None |
| OpBranchConditional %53 %55 %54 |
| %55 = OpLabel |
| OpReturnValue %int_1 |
| %54 = OpLabel |
| %56 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0 |
| %57 = OpLoad %float %56 |
| %58 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1 |
| %59 = OpLoad %float %58 |
| %60 = OpFOrdLessThan %bool %57 %59 |
| OpSelectionMerge %61 None |
| OpBranchConditional %60 %62 %61 |
| %62 = OpLabel |
| OpBranch %47 |
| %61 = OpLabel |
| OpBranch %46 |
| %46 = OpLabel |
| %63 = OpSLessThan %bool %39 %int_100 |
| OpBranchConditional %63 %44 %47 |
| %47 = OpLabel |
| OpBranch %40 |
| %40 = OpLabel |
| %64 = OpSLessThan %bool %39 %int_100 |
| OpBranchConditional %64 %37 %41 |
| %41 = OpLabel |
| OpReturnValue %int_0 |
| OpFunctionEnd |