1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %main "main" %sk_FragColor 5 OpExecutionMode %main OriginUpperLeft 6 OpName %sk_FragColor "sk_FragColor" 7 OpName %main "main" 8 OpName %x "x" 9 OpDecorate %sk_FragColor RelaxedPrecision 10 OpDecorate %sk_FragColor Location 0 11 OpDecorate %sk_FragColor Index 0 12 OpDecorate %24 RelaxedPrecision 13 %float = OpTypeFloat 32 14 %v4float = OpTypeVector %float 4 15%_ptr_Output_v4float = OpTypePointer Output %v4float 16%sk_FragColor = OpVariable %_ptr_Output_v4float Output 17 %void = OpTypeVoid 18 %8 = OpTypeFunction %void 19%_ptr_Function_float = OpTypePointer Function %float 20 %float_0 = OpConstant %float 0 21 %int = OpTypeInt 32 1 22 %int_0 = OpConstant %int 0 23 %float_1 = OpConstant %float 1 24 %bool = OpTypeBool 25 %main = OpFunction %void None %8 26 %9 = OpLabel 27 %x = OpVariable %_ptr_Function_float Function 28 OpStore %x %float_0 29 OpSelectionMerge %15 None 30 OpSwitch %int_0 %15 0 %16 1 %17 31 %16 = OpLabel 32 OpStore %x %float_0 33 %19 = OpFOrdLessThan %bool %float_0 %float_1 34 OpSelectionMerge %22 None 35 OpBranchConditional %19 %21 %22 36 %21 = OpLabel 37 OpBranch %15 38 %22 = OpLabel 39 OpBranch %17 40 %17 = OpLabel 41 OpStore %x %float_1 42 OpBranch %15 43 %15 = OpLabel 44 %23 = OpLoad %float %x 45 %24 = OpCompositeConstruct %v4float %23 %23 %23 %23 46 OpStore %sk_FragColor %24 47 OpReturn 48 OpFunctionEnd 49