| 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 %S "S" |
| OpMemberName %S 0 "f0" |
| OpMemberName %S 1 "f1" |
| OpName %gl_FragCoord "gl_FragCoord" |
| OpName %_GLF_color "_GLF_color" |
| OpMemberDecorate %S 0 RelaxedPrecision |
| OpDecorate %gl_FragCoord BuiltIn FragCoord |
| OpDecorate %_GLF_color Location 0 |
| OpDecorate %6 RelaxedPrecision |
| OpDecorate %7 RelaxedPrecision |
| OpDecorate %8 RelaxedPrecision |
| OpDecorate %9 RelaxedPrecision |
| OpDecorate %10 RelaxedPrecision |
| OpDecorate %11 RelaxedPrecision |
| OpDecorate %12 RelaxedPrecision |
| %void = OpTypeVoid |
| %14 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %mat4v3float = OpTypeMatrix %v3float 4 |
| %S = OpTypeStruct %int %mat4v3float |
| %int_0 = OpConstant %int 0 |
| %float_1 = OpConstant %float 1 |
| %float_0 = OpConstant %float 0 |
| %22 = OpConstantComposite %v3float %float_1 %float_0 %float_0 |
| %23 = OpConstantComposite %v3float %float_0 %float_1 %float_0 |
| %24 = OpConstantComposite %v3float %float_0 %float_0 %float_1 |
| %25 = OpConstantComposite %v3float %float_0 %float_0 %float_0 |
| %26 = OpConstantComposite %mat4v3float %22 %23 %24 %25 |
| %27 = OpConstantComposite %S %int_0 %26 |
| %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 |
| %bool = OpTypeBool |
| %int_1 = OpConstant %int 1 |
| %int_2 = OpConstant %int 2 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| %37 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| %int_1000 = OpConstant %int 1000 |
| %39 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| %main = OpFunction %void None %14 |
| %40 = OpLabel |
| OpBranch %41 |
| %41 = OpLabel |
| OpLoopMerge %42 %43 None |
| OpBranch %44 |
| %44 = OpLabel |
| %45 = OpPhi %S %27 %41 %46 %47 |
| %11 = OpPhi %int %int_0 %41 %9 %47 |
| %48 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 |
| %49 = OpLoad %float %48 |
| %50 = OpFOrdEqual %bool %49 %float_0 |
| %51 = OpSelect %int %50 %int_1 %int_2 |
| %52 = OpSLessThan %bool %11 %51 |
| OpLoopMerge %53 %47 None |
| OpBranchConditional %52 %47 %53 |
| %47 = OpLabel |
| OpStore %_GLF_color %37 |
| %7 = OpCompositeExtract %int %45 0 |
| %8 = OpIAdd %int %7 %int_1 |
| %46 = OpCompositeInsert %S %8 %45 0 |
| %9 = OpIAdd %int %11 %int_1 |
| OpBranch %44 |
| %53 = OpLabel |
| %10 = OpCompositeExtract %int %45 0 |
| %54 = OpSLessThan %bool %10 %int_1000 |
| OpSelectionMerge %55 None |
| OpBranchConditional %54 %56 %55 |
| %56 = OpLabel |
| OpBranch %42 |
| %55 = OpLabel |
| OpBranch %42 |
| %43 = OpLabel |
| OpBranch %41 |
| %42 = OpLabel |
| OpBranch %57 |
| %57 = OpLabel |
| %12 = OpPhi %int %int_0 %42 %6 %58 |
| %59 = OpSLessThan %bool %12 %51 |
| OpLoopMerge %60 %58 None |
| OpBranchConditional %59 %58 %60 |
| %58 = OpLabel |
| OpStore %_GLF_color %39 |
| %6 = OpIAdd %int %12 %int_1 |
| OpBranch %57 |
| %60 = OpLabel |
| OpReturn |
| OpFunctionEnd |