| 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 %func_ "func(" |
| OpName %b "b" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "three" |
| 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 |
| %float = OpTypeFloat 32 |
| %11 = OpTypeFunction %float |
| %_ptr_Function_float = OpTypePointer Function %float |
| %float_2 = OpConstant %float 2 |
| %buf0 = OpTypeStruct %float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %_ = OpVariable %_ptr_Uniform_buf0 Uniform |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %float_0 = OpConstant %float 0 |
| %bool = OpTypeBool |
| %float_1 = OpConstant %float 1 |
| %false = OpConstantFalse %bool |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| %24 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %25 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0 |
| %main = OpFunction %void None %9 |
| %26 = OpLabel |
| %27 = OpFunctionCall %float %func_ |
| %28 = OpFOrdEqual %bool %27 %float_1 |
| OpSelectionMerge %29 None |
| OpBranchConditional %28 %30 %31 |
| %30 = OpLabel |
| OpStore %_GLF_color %24 |
| OpBranch %29 |
| %31 = OpLabel |
| OpStore %_GLF_color %25 |
| OpBranch %29 |
| %29 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %func_ = OpFunction %float None %11 |
| %32 = OpLabel |
| %b = OpVariable %_ptr_Function_float Function |
| OpStore %b %float_2 |
| OpBranch %33 |
| %33 = OpLabel |
| %34 = OpPhi %float %float_2 %32 %float_1 %35 |
| OpLoopMerge %36 %35 None |
| OpBranch %37 |
| %37 = OpLabel |
| %38 = OpAccessChain %_ptr_Uniform_float %_ %int_0 |
| %39 = OpLoad %float %38 |
| %40 = OpFOrdEqual %bool %39 %float_0 |
| OpSelectionMerge %41 None |
| OpBranchConditional %40 %42 %41 |
| %42 = OpLabel |
| OpBranch %36 |
| %41 = OpLabel |
| %43 = OpAccessChain %_ptr_Uniform_float %_ %int_0 |
| %44 = OpLoad %float %43 |
| %45 = OpFOrdEqual %bool %44 %float_0 |
| OpSelectionMerge %46 None |
| OpBranchConditional %45 %47 %46 |
| %47 = OpLabel |
| OpReturnValue %float_1 |
| %46 = OpLabel |
| OpStore %b %float_1 |
| OpBranch %35 |
| %35 = OpLabel |
| OpBranchConditional %false %33 %36 |
| %36 = OpLabel |
| %48 = OpPhi %float %34 %42 %float_1 %35 |
| OpReturnValue %48 |
| OpFunctionEnd |