1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %main "main" %_GLF_color %gl_FragCoord 5 OpExecutionMode %main OriginUpperLeft 6 OpSource ESSL 310 7 OpName %main "main" 8 OpName %_GLF_color "_GLF_color" 9 OpName %gl_FragCoord "gl_FragCoord" 10 OpDecorate %_GLF_color Location 0 11 OpDecorate %gl_FragCoord BuiltIn FragCoord 12 %void = OpTypeVoid 13 %6 = OpTypeFunction %void 14 %float = OpTypeFloat 32 15 %v4float = OpTypeVector %float 4 16%_ptr_Output_v4float = OpTypePointer Output %v4float 17 %_GLF_color = OpVariable %_ptr_Output_v4float Output 18 %float_1 = OpConstant %float 1 19 %float_0 = OpConstant %float 0 20 %12 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 21 %bool = OpTypeBool 22 %true = OpConstantTrue %bool 23%_ptr_Input_v4float = OpTypePointer Input %v4float 24%gl_FragCoord = OpVariable %_ptr_Input_v4float Input 25 %uint = OpTypeInt 32 0 26 %uint_0 = OpConstant %uint 0 27%_ptr_Input_float = OpTypePointer Input %float 28 %main = OpFunction %void None %6 29 %19 = OpLabel 30 OpStore %_GLF_color %12 31 OpSelectionMerge %20 None 32 OpBranchConditional %true %21 %20 33 %21 = OpLabel 34 %22 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 35 %23 = OpLoad %float %22 36 %24 = OpFOrdLessThan %bool %23 %float_0 37 OpSelectionMerge %25 None 38 OpBranchConditional %24 %26 %25 39 %26 = OpLabel 40 OpBranch %27 41 %27 = OpLabel 42 OpLoopMerge %28 %29 None 43 OpBranch %30 44 %30 = OpLabel 45 OpStore %_GLF_color %12 46 OpBranch %29 47 %29 = OpLabel 48 %31 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 49 %32 = OpLoad %float %31 50 %33 = OpFOrdLessThan %bool %32 %float_0 51 OpBranchConditional %33 %27 %28 52 %28 = OpLabel 53 OpBranch %25 54 %25 = OpLabel 55 OpBranch %20 56 %20 = OpLabel 57 OpReturn 58 OpFunctionEnd 59