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