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 "input"
10OpMemberName %_UniformBuffer 1 "expected"
11OpMemberName %_UniformBuffer 2 "colorGreen"
12OpMemberName %_UniformBuffer 3 "colorRed"
13OpName %_entrypoint_v "_entrypoint_v"
14OpName %main "main"
15OpDecorate %sk_FragColor RelaxedPrecision
16OpDecorate %sk_FragColor Location 0
17OpDecorate %sk_FragColor Index 0
18OpDecorate %sk_Clockwise BuiltIn FrontFacing
19OpMemberDecorate %_UniformBuffer 0 Offset 0
20OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
21OpMemberDecorate %_UniformBuffer 1 Offset 16
22OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
23OpMemberDecorate %_UniformBuffer 2 Offset 32
24OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
25OpMemberDecorate %_UniformBuffer 3 Offset 48
26OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
27OpDecorate %_UniformBuffer Block
28OpDecorate %10 Binding 0
29OpDecorate %10 DescriptorSet 0
30OpDecorate %27 RelaxedPrecision
31OpDecorate %32 RelaxedPrecision
32OpDecorate %33 RelaxedPrecision
33OpDecorate %36 RelaxedPrecision
34OpDecorate %37 RelaxedPrecision
35OpDecorate %41 RelaxedPrecision
36OpDecorate %43 RelaxedPrecision
37OpDecorate %44 RelaxedPrecision
38OpDecorate %46 RelaxedPrecision
39OpDecorate %47 RelaxedPrecision
40OpDecorate %54 RelaxedPrecision
41OpDecorate %56 RelaxedPrecision
42OpDecorate %57 RelaxedPrecision
43OpDecorate %60 RelaxedPrecision
44OpDecorate %61 RelaxedPrecision
45OpDecorate %68 RelaxedPrecision
46OpDecorate %70 RelaxedPrecision
47OpDecorate %72 RelaxedPrecision
48OpDecorate %80 RelaxedPrecision
49OpDecorate %81 RelaxedPrecision
50OpDecorate %87 RelaxedPrecision
51OpDecorate %88 RelaxedPrecision
52OpDecorate %94 RelaxedPrecision
53OpDecorate %96 RelaxedPrecision
54OpDecorate %97 RelaxedPrecision
55OpDecorate %103 RelaxedPrecision
56OpDecorate %105 RelaxedPrecision
57OpDecorate %116 RelaxedPrecision
58OpDecorate %119 RelaxedPrecision
59OpDecorate %120 RelaxedPrecision
60%float = OpTypeFloat 32
61%v4float = OpTypeVector %float 4
62%_ptr_Output_v4float = OpTypePointer Output %v4float
63%sk_FragColor = OpVariable %_ptr_Output_v4float Output
64%bool = OpTypeBool
65%_ptr_Input_bool = OpTypePointer Input %bool
66%sk_Clockwise = OpVariable %_ptr_Input_bool Input
67%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float
68%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
69%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
70%void = OpTypeVoid
71%15 = OpTypeFunction %void
72%v2float = OpTypeVector %float 2
73%float_0 = OpConstant %float 0
74%19 = OpConstantComposite %v2float %float_0 %float_0
75%_ptr_Function_v2float = OpTypePointer Function %v2float
76%23 = OpTypeFunction %v4float %_ptr_Function_v2float
77%false = OpConstantFalse %bool
78%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
79%int = OpTypeInt 32 1
80%int_0 = OpConstant %int 0
81%int_1 = OpConstant %int 1
82%v2bool = OpTypeVector %bool 2
83%v3float = OpTypeVector %float 3
84%v3bool = OpTypeVector %bool 3
85%v4bool = OpTypeVector %bool 4
86%94 = OpConstantComposite %v3float %float_0 %float_0 %float_0
87%103 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
88%_ptr_Function_v4float = OpTypePointer Function %v4float
89%int_2 = OpConstant %int 2
90%int_3 = OpConstant %int 3
91%_entrypoint_v = OpFunction %void None %15
92%16 = OpLabel
93%20 = OpVariable %_ptr_Function_v2float Function
94OpStore %20 %19
95%22 = OpFunctionCall %v4float %main %20
96OpStore %sk_FragColor %22
97OpReturn
98OpFunctionEnd
99%main = OpFunction %v4float None %23
100%24 = OpFunctionParameter %_ptr_Function_v2float
101%25 = OpLabel
102%109 = OpVariable %_ptr_Function_v4float Function
103%28 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
104%32 = OpLoad %v4float %28
105%33 = OpCompositeExtract %float %32 0
106%27 = OpExtInst %float %1 Tan %33
107%34 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
108%36 = OpLoad %v4float %34
109%37 = OpCompositeExtract %float %36 0
110%38 = OpFOrdEqual %bool %27 %37
111OpSelectionMerge %40 None
112OpBranchConditional %38 %39 %40
113%39 = OpLabel
114%42 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
115%43 = OpLoad %v4float %42
116%44 = OpVectorShuffle %v2float %43 %43 0 1
117%41 = OpExtInst %v2float %1 Tan %44
118%45 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
119%46 = OpLoad %v4float %45
120%47 = OpVectorShuffle %v2float %46 %46 0 1
121%48 = OpFOrdEqual %v2bool %41 %47
122%50 = OpAll %bool %48
123OpBranch %40
124%40 = OpLabel
125%51 = OpPhi %bool %false %25 %50 %39
126OpSelectionMerge %53 None
127OpBranchConditional %51 %52 %53
128%52 = OpLabel
129%55 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
130%56 = OpLoad %v4float %55
131%57 = OpVectorShuffle %v3float %56 %56 0 1 2
132%54 = OpExtInst %v3float %1 Tan %57
133%59 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
134%60 = OpLoad %v4float %59
135%61 = OpVectorShuffle %v3float %60 %60 0 1 2
136%62 = OpFOrdEqual %v3bool %54 %61
137%64 = OpAll %bool %62
138OpBranch %53
139%53 = OpLabel
140%65 = OpPhi %bool %false %40 %64 %52
141OpSelectionMerge %67 None
142OpBranchConditional %65 %66 %67
143%66 = OpLabel
144%69 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
145%70 = OpLoad %v4float %69
146%68 = OpExtInst %v4float %1 Tan %70
147%71 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
148%72 = OpLoad %v4float %71
149%73 = OpFOrdEqual %v4bool %68 %72
150%75 = OpAll %bool %73
151OpBranch %67
152%67 = OpLabel
153%76 = OpPhi %bool %false %53 %75 %66
154OpSelectionMerge %78 None
155OpBranchConditional %76 %77 %78
156%77 = OpLabel
157%79 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
158%80 = OpLoad %v4float %79
159%81 = OpCompositeExtract %float %80 0
160%82 = OpFOrdEqual %bool %float_0 %81
161OpBranch %78
162%78 = OpLabel
163%83 = OpPhi %bool %false %67 %82 %77
164OpSelectionMerge %85 None
165OpBranchConditional %83 %84 %85
166%84 = OpLabel
167%86 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
168%87 = OpLoad %v4float %86
169%88 = OpVectorShuffle %v2float %87 %87 0 1
170%89 = OpFOrdEqual %v2bool %19 %88
171%90 = OpAll %bool %89
172OpBranch %85
173%85 = OpLabel
174%91 = OpPhi %bool %false %78 %90 %84
175OpSelectionMerge %93 None
176OpBranchConditional %91 %92 %93
177%92 = OpLabel
178%95 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
179%96 = OpLoad %v4float %95
180%97 = OpVectorShuffle %v3float %96 %96 0 1 2
181%98 = OpFOrdEqual %v3bool %94 %97
182%99 = OpAll %bool %98
183OpBranch %93
184%93 = OpLabel
185%100 = OpPhi %bool %false %85 %99 %92
186OpSelectionMerge %102 None
187OpBranchConditional %100 %101 %102
188%101 = OpLabel
189%104 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
190%105 = OpLoad %v4float %104
191%106 = OpFOrdEqual %v4bool %103 %105
192%107 = OpAll %bool %106
193OpBranch %102
194%102 = OpLabel
195%108 = OpPhi %bool %false %93 %107 %101
196OpSelectionMerge %113 None
197OpBranchConditional %108 %111 %112
198%111 = OpLabel
199%114 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
200%116 = OpLoad %v4float %114
201OpStore %109 %116
202OpBranch %113
203%112 = OpLabel
204%117 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
205%119 = OpLoad %v4float %117
206OpStore %109 %119
207OpBranch %113
208%113 = OpLabel
209%120 = OpLoad %v4float %109
210OpReturnValue %120
211OpFunctionEnd
212