| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %_GLF_color |
| OpExecutionMode %main OriginUpperLeft |
| OpSource ESSL 310 |
| OpName %main "main" |
| OpName %merge_ "merge(" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "zero" |
| OpName %_ "" |
| OpName %_GLF_color "_GLF_color" |
| OpName %res "res" |
| OpDecorate %merge_ RelaxedPrecision |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %buf0 Block |
| OpDecorate %_ DescriptorSet 0 |
| OpDecorate %_ Binding 0 |
| OpDecorate %_GLF_color Location 0 |
| OpDecorate %res RelaxedPrecision |
| OpDecorate %8 RelaxedPrecision |
| OpDecorate %9 RelaxedPrecision |
| %void = OpTypeVoid |
| %11 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %13 = OpTypeFunction %int |
| %float = OpTypeFloat 32 |
| %buf0 = OpTypeStruct %float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %_ = OpVariable %_ptr_Uniform_buf0 Uniform |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %float_0 = OpConstant %float 0 |
| %bool = OpTypeBool |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| %float_1 = OpConstant %float 1 |
| %23 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %false = OpConstantFalse %bool |
| %_ptr_Function_int = OpTypePointer Function %int |
| %main = OpFunction %void None %11 |
| %26 = OpLabel |
| %res = OpVariable %_ptr_Function_int Function |
| OpStore %_GLF_color %23 |
| OpBranch %27 |
| %27 = OpLabel |
| OpLoopMerge %28 %29 None |
| OpBranch %30 |
| %30 = OpLabel |
| %31 = OpAccessChain %_ptr_Uniform_float %_ %int_0 |
| %32 = OpLoad %float %31 |
| %33 = OpConvertFToS %int %32 |
| OpSelectionMerge %34 None |
| OpSwitch %33 %34 0 %35 |
| %35 = OpLabel |
| OpReturn |
| %34 = OpLabel |
| OpBranch %29 |
| %29 = OpLabel |
| OpBranchConditional %false %27 %28 |
| %28 = OpLabel |
| %8 = OpFunctionCall %int %merge_ |
| OpStore %res %8 |
| %9 = OpLoad %int %res |
| %36 = OpConvertSToF %float %9 |
| %37 = OpCompositeConstruct %v4float %36 %36 %36 %36 |
| OpStore %_GLF_color %37 |
| OpReturn |
| OpFunctionEnd |
| %merge_ = OpFunction %int None %13 |
| %38 = OpLabel |
| %39 = OpAccessChain %_ptr_Uniform_float %_ %int_0 |
| %40 = OpLoad %float %39 |
| %41 = OpFOrdLessThan %bool %40 %float_0 |
| OpSelectionMerge %42 None |
| OpBranchConditional %41 %43 %42 |
| %43 = OpLabel |
| OpReturnValue %int_0 |
| %42 = OpLabel |
| %44 = OpUndef %int |
| OpReturnValue %44 |
| OpFunctionEnd |