2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5 OpExecutionMode %main OriginUpperLeft
6 OpName %sk_FragColor "sk_FragColor"
7 OpName %sk_Clockwise "sk_Clockwise"
10 OpDecorate %sk_FragColor RelaxedPrecision
11 OpDecorate %sk_FragColor Location 0
12 OpDecorate %sk_FragColor Index 0
13 OpDecorate %sk_Clockwise BuiltIn FrontFacing
14 OpDecorate %26 RelaxedPrecision
15 %float = OpTypeFloat 32
16 %v4float = OpTypeVector %float 4
17 %_ptr_Output_v4float = OpTypePointer Output %v4float
18 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
20 %_ptr_Input_bool = OpTypePointer Input %bool
21 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
23 %11 = OpTypeFunction %void
24 %_ptr_Function_float = OpTypePointer Function %float
25 %float_0 = OpConstant %float 0
27 %int_0 = OpConstant %int 0
28 %float_1 = OpConstant %float 1
29 %main = OpFunction %void None %11
31 %x = OpVariable %_ptr_Function_float Function
33 OpSelectionMerge %18 None
34 OpSwitch %int_0 %18 0 %19 1 %20
37 %22 = OpFOrdLessThan %bool %float_0 %float_1
38 OpSelectionMerge %24 None
39 OpBranchConditional %22 %23 %24
48 %25 = OpLoad %float %x
49 %26 = OpCompositeConstruct %v4float %25 %25 %25 %25
50 OpStore %sk_FragColor %26