1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color 5 OpExecutionMode %main OriginUpperLeft 6 OpSource ESSL 310 7 OpName %main "main" 8 OpName %gl_FragCoord "gl_FragCoord" 9 OpName %_GLF_color "_GLF_color" 10 OpDecorate %gl_FragCoord BuiltIn FragCoord 11 OpDecorate %_GLF_color Location 0 12 %void = OpTypeVoid 13 %6 = OpTypeFunction %void 14 %int = OpTypeInt 32 1 15 %int_0 = OpConstant %int 0 16 %int_10 = OpConstant %int 10 17 %bool = OpTypeBool 18 %float = OpTypeFloat 32 19 %v4float = OpTypeVector %float 4 20%_ptr_Input_v4float = OpTypePointer Input %v4float 21%gl_FragCoord = OpVariable %_ptr_Input_v4float Input 22 %uint = OpTypeInt 32 0 23 %uint_1 = OpConstant %uint 1 24%_ptr_Input_float = OpTypePointer Input %float 25 %float_0 = OpConstant %float 0 26 %uint_0 = OpConstant %uint 0 27 %int_1 = OpConstant %int 1 28%_ptr_Output_v4float = OpTypePointer Output %v4float 29 %_GLF_color = OpVariable %_ptr_Output_v4float Output 30 %float_1 = OpConstant %float 1 31 %22 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 32 %false = OpConstantFalse %bool 33 %true = OpConstantTrue %bool 34 %main = OpFunction %void None %6 35 %25 = OpLabel 36 OpBranch %26 37 %26 = OpLabel 38 OpLoopMerge %27 %28 None 39 OpBranch %29 40 %29 = OpLabel 41 %30 = OpPhi %int %int_0 %26 %31 %32 42 %33 = OpSLessThan %bool %30 %int_10 43 OpLoopMerge %34 %32 None 44 OpBranchConditional %33 %35 %34 45 %35 = OpLabel 46 %36 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1 47 %37 = OpLoad %float %36 48 %38 = OpFOrdLessThan %bool %37 %float_0 49 OpSelectionMerge %39 None 50 OpBranchConditional %38 %40 %39 51 %40 = OpLabel 52 %41 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 53 %42 = OpLoad %float %41 54 %43 = OpFOrdLessThan %bool %42 %float_0 55 OpSelectionMerge %44 None 56 OpBranchConditional %43 %45 %32 57 %45 = OpLabel 58 OpBranch %34 59 %44 = OpLabel 60 OpBranch %32 61 %32 = OpLabel 62 %31 = OpIAdd %int %30 %int_1 63 OpBranch %29 64 %39 = OpLabel 65 %46 = OpFunctionCall %void %47 66 OpBranch %34 67 %34 = OpLabel 68 %48 = OpPhi %bool %false %29 %false %45 %true %39 69 OpSelectionMerge %49 None 70 OpBranchConditional %48 %27 %49 71 %49 = OpLabel 72 OpStore %_GLF_color %22 73 OpBranch %27 74 %28 = OpLabel 75 OpBranch %26 76 %27 = OpLabel 77 OpReturn 78 OpFunctionEnd 79 %47 = OpFunction %void None %6 80 %50 = OpLabel 81 OpKill 82 OpFunctionEnd 83