| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color |
| OpExecutionMode %main OriginUpperLeft |
| OpSource ESSL 310 |
| OpName %main "main" |
| OpName %gl_FragCoord "gl_FragCoord" |
| OpName %_GLF_color "_GLF_color" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "injectionSwitch" |
| OpName %_ "" |
| OpDecorate %gl_FragCoord BuiltIn FragCoord |
| OpDecorate %_GLF_color Location 0 |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %buf0 Block |
| OpDecorate %_ DescriptorSet 0 |
| OpDecorate %_ Binding 0 |
| %void = OpTypeVoid |
| %8 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Input_float = OpTypePointer Input %float |
| %float_0 = OpConstant %float 0 |
| %float_1 = OpConstant %float 1 |
| %18 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| %int_0 = OpConstant %int 0 |
| %v2float = OpTypeVector %float 2 |
| %buf0 = OpTypeStruct %v2float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %_ = OpVariable %_ptr_Uniform_buf0 Uniform |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %bool = OpTypeBool |
| %int_1 = OpConstant %int 1 |
| %false = OpConstantFalse %bool |
| %true = OpConstantTrue %bool |
| %main = OpFunction %void None %8 |
| %29 = OpLabel |
| OpBranch %30 |
| %30 = OpLabel |
| %31 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 |
| %32 = OpLoad %float %31 |
| %33 = OpExtInst %float %1 FClamp %32 %float_0 %float_1 |
| %34 = OpConvertFToS %int %33 |
| OpStore %_GLF_color %18 |
| OpLoopMerge %35 %36 None |
| OpBranch %37 |
| %37 = OpLabel |
| %38 = OpPhi %bool %false %30 %39 %40 |
| %41 = OpPhi %v4float %18 %30 %42 %40 |
| OpLoopMerge %43 %40 None |
| OpBranch %44 |
| %44 = OpLabel |
| %42 = OpPhi %v4float %41 %37 %45 %46 |
| %47 = OpPhi %int %int_0 %37 %48 %46 |
| %49 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_1 |
| %50 = OpLoad %float %49 |
| %51 = OpConvertFToS %int %50 |
| %52 = OpIAdd %int %34 %51 |
| %53 = OpSLessThan %bool %47 %52 |
| OpLoopMerge %54 %46 None |
| OpBranchConditional %53 %55 %54 |
| %55 = OpLabel |
| %56 = OpSLessThan %bool %34 %int_0 |
| OpSelectionMerge %57 None |
| OpBranchConditional %56 %58 %59 |
| %58 = OpLabel |
| OpBranch %54 |
| %59 = OpLabel |
| %60 = OpIEqual %bool %34 %int_1 |
| OpSelectionMerge %61 None |
| OpBranchConditional %60 %62 %63 |
| %62 = OpLabel |
| %64 = OpConvertSToF %float %34 |
| %65 = OpCompositeConstruct %v2float %64 %64 |
| %66 = OpVectorShuffle %v4float %42 %65 4 1 2 5 |
| OpBranch %61 |
| %63 = OpLabel |
| %67 = OpIAdd %int %34 %int_1 |
| %68 = OpConvertSToF %float %67 |
| %69 = OpCompositeConstruct %v2float %68 %68 |
| %70 = OpVectorShuffle %v4float %42 %69 4 1 2 5 |
| OpBranch %61 |
| %61 = OpLabel |
| %45 = OpPhi %v4float %66 %62 %70 %63 |
| OpBranch %57 |
| %57 = OpLabel |
| OpBranch %46 |
| %46 = OpLabel |
| %48 = OpIAdd %int %47 %int_1 |
| OpBranch %44 |
| %54 = OpLabel |
| %39 = OpPhi %bool %38 %44 %true %58 |
| OpSelectionMerge %71 None |
| OpBranchConditional %39 %43 %71 |
| %71 = OpLabel |
| OpBranch %40 |
| %40 = OpLabel |
| %72 = OpSLessThan %bool %34 %int_0 |
| OpBranchConditional %72 %37 %43 |
| %43 = OpLabel |
| OpSelectionMerge %73 None |
| OpBranchConditional %39 %35 %73 |
| %73 = OpLabel |
| OpStore %_GLF_color %42 |
| OpBranch %35 |
| %36 = OpLabel |
| OpBranch %30 |
| %35 = OpLabel |
| OpReturn |
| OpFunctionEnd |