1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_entrypoint_v "_entrypoint_v"
9OpName %main "main"
10OpName %color "color"
11OpName %counter "counter"
12OpName %counter_0 "counter"
13OpName %counter_1 "counter"
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18OpDecorate %color RelaxedPrecision
19OpDecorate %25 RelaxedPrecision
20OpDecorate %76 RelaxedPrecision
21%float = OpTypeFloat 32
22%v4float = OpTypeVector %float 4
23%_ptr_Output_v4float = OpTypePointer Output %v4float
24%sk_FragColor = OpVariable %_ptr_Output_v4float Output
25%bool = OpTypeBool
26%_ptr_Input_bool = OpTypePointer Input %bool
27%sk_Clockwise = OpVariable %_ptr_Input_bool Input
28%void = OpTypeVoid
29%12 = OpTypeFunction %void
30%v2float = OpTypeVector %float 2
31%float_0 = OpConstant %float 0
32%16 = OpConstantComposite %v2float %float_0 %float_0
33%_ptr_Function_v2float = OpTypePointer Function %v2float
34%20 = OpTypeFunction %v4float %_ptr_Function_v2float
35%_ptr_Function_v4float = OpTypePointer Function %v4float
36%25 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
37%int = OpTypeInt 32 1
38%_ptr_Function_int = OpTypePointer Function %int
39%int_0 = OpConstant %int 0
40%int_10 = OpConstant %int 10
41%int_1 = OpConstant %int 1
42%float_1 = OpConstant %float 1
43%_ptr_Function_float = OpTypePointer Function %float
44%float_2 = OpConstant %float 2
45%int_3 = OpConstant %int 3
46%_entrypoint_v = OpFunction %void None %12
47%13 = OpLabel
48%17 = OpVariable %_ptr_Function_v2float Function
49OpStore %17 %16
50%19 = OpFunctionCall %v4float %main %17
51OpStore %sk_FragColor %19
52OpReturn
53OpFunctionEnd
54%main = OpFunction %v4float None %20
55%21 = OpFunctionParameter %_ptr_Function_v2float
56%22 = OpLabel
57%color = OpVariable %_ptr_Function_v4float Function
58%counter = OpVariable %_ptr_Function_int Function
59%counter_0 = OpVariable %_ptr_Function_int Function
60%counter_1 = OpVariable %_ptr_Function_int Function
61OpStore %color %25
62OpStore %counter %int_0
63OpBranch %30
64%30 = OpLabel
65OpLoopMerge %34 %33 None
66OpBranch %31
67%31 = OpLabel
68%35 = OpLoad %int %counter
69%37 = OpSLessThan %bool %35 %int_10
70OpBranchConditional %37 %32 %34
71%32 = OpLabel
72OpBranch %33
73%33 = OpLabel
74%39 = OpLoad %int %counter
75%40 = OpIAdd %int %39 %int_1
76OpStore %counter %40
77OpBranch %30
78%34 = OpLabel
79OpStore %counter_0 %int_0
80OpBranch %42
81%42 = OpLabel
82OpLoopMerge %46 %45 None
83OpBranch %43
84%43 = OpLabel
85%47 = OpLoad %int %counter_0
86%48 = OpSLessThan %bool %47 %int_10
87OpBranchConditional %48 %44 %46
88%44 = OpLabel
89OpBranch %45
90%45 = OpLabel
91%49 = OpLoad %int %counter_0
92%50 = OpIAdd %int %49 %int_1
93OpStore %counter_0 %50
94OpBranch %42
95%46 = OpLabel
96OpStore %counter_1 %int_0
97OpBranch %52
98%52 = OpLabel
99OpLoopMerge %56 %55 None
100OpBranch %53
101%53 = OpLabel
102%57 = OpLoad %int %counter_1
103%58 = OpSLessThan %bool %57 %int_10
104OpBranchConditional %58 %54 %56
105%54 = OpLabel
106OpBranch %55
107%55 = OpLabel
108%59 = OpLoad %int %counter_1
109%60 = OpIAdd %int %59 %int_1
110OpStore %counter_1 %60
111OpBranch %52
112%56 = OpLabel
113%61 = OpExtInst %float %1 Sqrt %float_1
114%63 = OpFOrdEqual %bool %61 %float_1
115OpSelectionMerge %65 None
116OpBranchConditional %63 %64 %65
117%64 = OpLabel
118%66 = OpAccessChain %_ptr_Function_float %color %int_1
119OpStore %66 %float_1
120OpBranch %65
121%65 = OpLabel
122%68 = OpExtInst %float %1 Sqrt %float_1
123%70 = OpFOrdEqual %bool %68 %float_2
124OpSelectionMerge %73 None
125OpBranchConditional %70 %71 %72
126%71 = OpLabel
127OpBranch %73
128%72 = OpLabel
129%74 = OpAccessChain %_ptr_Function_float %color %int_3
130OpStore %74 %float_1
131OpBranch %73
132%73 = OpLabel
133%76 = OpLoad %v4float %color
134OpReturnValue %76
135OpFunctionEnd
136