1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %main "main"
9OpName %x "x"
10OpDecorate %sk_FragColor RelaxedPrecision
11OpDecorate %sk_FragColor Location 0
12OpDecorate %sk_FragColor Index 0
13OpDecorate %sk_Clockwise BuiltIn FrontFacing
14OpDecorate %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
19%bool = OpTypeBool
20%_ptr_Input_bool = OpTypePointer Input %bool
21%sk_Clockwise = OpVariable %_ptr_Input_bool Input
22%void = OpTypeVoid
23%11 = OpTypeFunction %void
24%_ptr_Function_float = OpTypePointer Function %float
25%float_1 = OpConstant %float 1
26%int = OpTypeInt 32 1
27%float_0 = OpConstant %float 0
28%float_2 = OpConstant %float 2
29%main = OpFunction %void None %11
30%12 = OpLabel
31%x = OpVariable %_ptr_Function_float Function
32%15 = OpExtInst %float %1 Sqrt %float_1
33%17 = OpConvertFToS %int %15
34OpSelectionMerge %19 None
35OpSwitch %17 %22 0 %20 1 %21
36%20 = OpLabel
37OpStore %x %float_0
38OpBranch %19
39%21 = OpLabel
40OpStore %x %float_1
41OpBranch %19
42%22 = OpLabel
43OpStore %x %float_2
44OpBranch %19
45%19 = OpLabel
46%25 = OpLoad %float %x
47%26 = OpCompositeConstruct %v4float %25 %25 %25 %25
48OpStore %sk_FragColor %26
49OpReturn
50OpFunctionEnd
51