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 %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "colorGreen"
10OpMemberName %_UniformBuffer 1 "colorRed"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %main "main"
13OpName %ok "ok"
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18OpMemberDecorate %_UniformBuffer 0 Offset 0
19OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
20OpMemberDecorate %_UniformBuffer 1 Offset 16
21OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
22OpDecorate %_UniformBuffer Block
23OpDecorate %10 Binding 0
24OpDecorate %10 DescriptorSet 0
25OpDecorate %30 RelaxedPrecision
26OpDecorate %37 RelaxedPrecision
27OpDecorate %38 RelaxedPrecision
28OpDecorate %43 RelaxedPrecision
29OpDecorate %47 RelaxedPrecision
30OpDecorate %48 RelaxedPrecision
31OpDecorate %52 RelaxedPrecision
32OpDecorate %59 RelaxedPrecision
33OpDecorate %62 RelaxedPrecision
34OpDecorate %63 RelaxedPrecision
35%float = OpTypeFloat 32
36%v4float = OpTypeVector %float 4
37%_ptr_Output_v4float = OpTypePointer Output %v4float
38%sk_FragColor = OpVariable %_ptr_Output_v4float Output
39%bool = OpTypeBool
40%_ptr_Input_bool = OpTypePointer Input %bool
41%sk_Clockwise = OpVariable %_ptr_Input_bool Input
42%_UniformBuffer = OpTypeStruct %v4float %v4float
43%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
44%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
45%void = OpTypeVoid
46%15 = OpTypeFunction %void
47%v2float = OpTypeVector %float 2
48%float_0 = OpConstant %float 0
49%19 = OpConstantComposite %v2float %float_0 %float_0
50%_ptr_Function_v2float = OpTypePointer Function %v2float
51%23 = OpTypeFunction %v4float %_ptr_Function_v2float
52%_ptr_Function_bool = OpTypePointer Function %bool
53%true = OpConstantTrue %bool
54%false = OpConstantFalse %bool
55%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
56%int = OpTypeInt 32 1
57%int_0 = OpConstant %int 0
58%float_1 = OpConstant %float 1
59%_ptr_Function_v4float = OpTypePointer Function %v4float
60%int_1 = OpConstant %int 1
61%_entrypoint_v = OpFunction %void None %15
62%16 = OpLabel
63%20 = OpVariable %_ptr_Function_v2float Function
64OpStore %20 %19
65%22 = OpFunctionCall %v4float %main %20
66OpStore %sk_FragColor %22
67OpReturn
68OpFunctionEnd
69%main = OpFunction %v4float None %23
70%24 = OpFunctionParameter %_ptr_Function_v2float
71%25 = OpLabel
72%ok = OpVariable %_ptr_Function_bool Function
73%53 = OpVariable %_ptr_Function_v4float Function
74OpStore %ok %true
75%30 = OpLoad %bool %ok
76OpSelectionMerge %32 None
77OpBranchConditional %30 %31 %32
78%31 = OpLabel
79%33 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
80%37 = OpLoad %v4float %33
81%38 = OpCompositeExtract %float %37 1
82%40 = OpFOrdEqual %bool %38 %float_1
83%41 = OpSelect %bool %40 %true %false
84OpBranch %32
85%32 = OpLabel
86%42 = OpPhi %bool %false %25 %41 %31
87OpStore %ok %42
88%43 = OpLoad %bool %ok
89OpSelectionMerge %45 None
90OpBranchConditional %43 %44 %45
91%44 = OpLabel
92%46 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
93%47 = OpLoad %v4float %46
94%48 = OpCompositeExtract %float %47 0
95%49 = OpFOrdEqual %bool %48 %float_1
96%50 = OpSelect %bool %49 %false %true
97OpBranch %45
98%45 = OpLabel
99%51 = OpPhi %bool %false %32 %50 %44
100OpStore %ok %51
101%52 = OpLoad %bool %ok
102OpSelectionMerge %57 None
103OpBranchConditional %52 %55 %56
104%55 = OpLabel
105%58 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
106%59 = OpLoad %v4float %58
107OpStore %53 %59
108OpBranch %57
109%56 = OpLabel
110%60 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
111%62 = OpLoad %v4float %60
112OpStore %53 %62
113OpBranch %57
114%57 = OpLabel
115%63 = OpLoad %v4float %53
116OpReturnValue %63
117OpFunctionEnd
118