• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
11OpMemberName %_UniformBuffer 2 "testMatrix2x2"
12OpMemberName %_UniformBuffer 3 "testMatrix3x3"
13OpMemberName %_UniformBuffer 4 "testInputs"
14OpName %_entrypoint_v "_entrypoint_v"
15OpName %main "main"
16OpName %c12 "c12"
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpDecorate %sk_Clockwise BuiltIn FrontFacing
21OpMemberDecorate %_UniformBuffer 0 Offset 0
22OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
23OpMemberDecorate %_UniformBuffer 1 Offset 16
24OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
25OpMemberDecorate %_UniformBuffer 2 Offset 32
26OpMemberDecorate %_UniformBuffer 2 ColMajor
27OpMemberDecorate %_UniformBuffer 2 MatrixStride 16
28OpMemberDecorate %_UniformBuffer 3 Offset 64
29OpMemberDecorate %_UniformBuffer 3 ColMajor
30OpMemberDecorate %_UniformBuffer 3 MatrixStride 16
31OpMemberDecorate %_UniformBuffer 4 Offset 112
32OpMemberDecorate %_UniformBuffer 4 RelaxedPrecision
33OpDecorate %_UniformBuffer Block
34OpDecorate %10 Binding 0
35OpDecorate %10 DescriptorSet 0
36OpDecorate %132 RelaxedPrecision
37OpDecorate %136 RelaxedPrecision
38OpDecorate %137 RelaxedPrecision
39OpDecorate %175 RelaxedPrecision
40OpDecorate %196 RelaxedPrecision
41OpDecorate %229 RelaxedPrecision
42OpDecorate %231 RelaxedPrecision
43OpDecorate %232 RelaxedPrecision
44%float = OpTypeFloat 32
45%v4float = OpTypeVector %float 4
46%_ptr_Output_v4float = OpTypePointer Output %v4float
47%sk_FragColor = OpVariable %_ptr_Output_v4float Output
48%bool = OpTypeBool
49%_ptr_Input_bool = OpTypePointer Input %bool
50%sk_Clockwise = OpVariable %_ptr_Input_bool Input
51%v2float = OpTypeVector %float 2
52%mat2v2float = OpTypeMatrix %v2float 2
53%v3float = OpTypeVector %float 3
54%mat3v3float = OpTypeMatrix %v3float 3
55%_UniformBuffer = OpTypeStruct %v4float %v4float %mat2v2float %mat3v3float %v4float
56%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
57%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
58%void = OpTypeVoid
59%19 = OpTypeFunction %void
60%float_0 = OpConstant %float 0
61%22 = OpConstantComposite %v2float %float_0 %float_0
62%_ptr_Function_v2float = OpTypePointer Function %v2float
63%26 = OpTypeFunction %v4float %_ptr_Function_v2float
64%float_1 = OpConstant %float 1
65%float_2 = OpConstant %float 2
66%32 = OpConstantComposite %v2float %float_1 %float_2
67%false = OpConstantFalse %bool
68%_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float
69%int = OpTypeInt 32 1
70%int_2 = OpConstant %int 2
71%int_0 = OpConstant %int 0
72%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
73%int_1 = OpConstant %int 1
74%float_3 = OpConstant %float 3
75%float_6 = OpConstant %float 6
76%float_4 = OpConstant %float 4
77%float_8 = OpConstant %float 8
78%v2bool = OpTypeVector %bool 2
79%_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
80%int_3 = OpConstant %int 3
81%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
82%float_12 = OpConstant %float 12
83%float_5 = OpConstant %float 5
84%float_10 = OpConstant %float 10
85%float_15 = OpConstant %float 15
86%float_18 = OpConstant %float 18
87%v3bool = OpTypeVector %bool 3
88%mat3v2float = OpTypeMatrix %v2float 3
89%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
90%int_4 = OpConstant %int 4
91%137 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_2
92%mat4v4float = OpTypeMatrix %v4float 4
93%float_n1_25 = OpConstant %float -1.25
94%float_0_75 = OpConstant %float 0.75
95%float_2_25 = OpConstant %float 2.25
96%float_n2_5 = OpConstant %float -2.5
97%float_1_5 = OpConstant %float 1.5
98%float_4_5 = OpConstant %float 4.5
99%v4bool = OpTypeVector %bool 4
100%mat2v4float = OpTypeMatrix %v4float 2
101%mat4v2float = OpTypeMatrix %v2float 4
102%_ptr_Function_v4float = OpTypePointer Function %v4float
103%_entrypoint_v = OpFunction %void None %19
104%20 = OpLabel
105%23 = OpVariable %_ptr_Function_v2float Function
106OpStore %23 %22
107%25 = OpFunctionCall %v4float %main %23
108OpStore %sk_FragColor %25
109OpReturn
110OpFunctionEnd
111%main = OpFunction %v4float None %26
112%27 = OpFunctionParameter %_ptr_Function_v2float
113%28 = OpLabel
114%c12 = OpVariable %_ptr_Function_v2float Function
115%223 = OpVariable %_ptr_Function_v4float Function
116OpStore %c12 %32
117%35 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_2
118%40 = OpAccessChain %_ptr_Uniform_v2float %35 %int_0
119%42 = OpLoad %v2float %40
120%43 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_2
121%45 = OpAccessChain %_ptr_Uniform_v2float %43 %int_1
122%46 = OpLoad %v2float %45
123%34 = OpOuterProduct %mat2v2float %42 %46
124%51 = OpCompositeConstruct %v2float %float_3 %float_6
125%52 = OpCompositeConstruct %v2float %float_4 %float_8
126%53 = OpCompositeConstruct %mat2v2float %51 %52
127%55 = OpCompositeExtract %v2float %34 0
128%56 = OpCompositeExtract %v2float %53 0
129%57 = OpFOrdEqual %v2bool %55 %56
130%58 = OpAll %bool %57
131%59 = OpCompositeExtract %v2float %34 1
132%60 = OpCompositeExtract %v2float %53 1
133%61 = OpFOrdEqual %v2bool %59 %60
134%62 = OpAll %bool %61
135%63 = OpLogicalAnd %bool %58 %62
136OpSelectionMerge %65 None
137OpBranchConditional %63 %64 %65
138%64 = OpLabel
139%67 = OpAccessChain %_ptr_Uniform_mat3v3float %10 %int_3
140%70 = OpAccessChain %_ptr_Uniform_v3float %67 %int_0
141%72 = OpLoad %v3float %70
142%73 = OpAccessChain %_ptr_Uniform_mat3v3float %10 %int_3
143%74 = OpAccessChain %_ptr_Uniform_v3float %73 %int_1
144%75 = OpLoad %v3float %74
145%66 = OpOuterProduct %mat3v3float %72 %75
146%81 = OpCompositeConstruct %v3float %float_4 %float_8 %float_12
147%82 = OpCompositeConstruct %v3float %float_5 %float_10 %float_15
148%83 = OpCompositeConstruct %v3float %float_6 %float_12 %float_18
149%84 = OpCompositeConstruct %mat3v3float %81 %82 %83
150%86 = OpCompositeExtract %v3float %66 0
151%87 = OpCompositeExtract %v3float %84 0
152%88 = OpFOrdEqual %v3bool %86 %87
153%89 = OpAll %bool %88
154%90 = OpCompositeExtract %v3float %66 1
155%91 = OpCompositeExtract %v3float %84 1
156%92 = OpFOrdEqual %v3bool %90 %91
157%93 = OpAll %bool %92
158%94 = OpLogicalAnd %bool %89 %93
159%95 = OpCompositeExtract %v3float %66 2
160%96 = OpCompositeExtract %v3float %84 2
161%97 = OpFOrdEqual %v3bool %95 %96
162%98 = OpAll %bool %97
163%99 = OpLogicalAnd %bool %94 %98
164OpBranch %65
165%65 = OpLabel
166%100 = OpPhi %bool %false %28 %99 %64
167OpSelectionMerge %102 None
168OpBranchConditional %100 %101 %102
169%101 = OpLabel
170%104 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_2
171%105 = OpAccessChain %_ptr_Uniform_v2float %104 %int_0
172%106 = OpLoad %v2float %105
173%107 = OpAccessChain %_ptr_Uniform_mat3v3float %10 %int_3
174%108 = OpAccessChain %_ptr_Uniform_v3float %107 %int_1
175%109 = OpLoad %v3float %108
176%103 = OpOuterProduct %mat3v2float %106 %109
177%111 = OpCompositeConstruct %v2float %float_4 %float_8
178%112 = OpCompositeConstruct %v2float %float_5 %float_10
179%113 = OpCompositeConstruct %v2float %float_6 %float_12
180%114 = OpCompositeConstruct %mat3v2float %111 %112 %113
181%115 = OpCompositeExtract %v2float %103 0
182%116 = OpCompositeExtract %v2float %114 0
183%117 = OpFOrdEqual %v2bool %115 %116
184%118 = OpAll %bool %117
185%119 = OpCompositeExtract %v2float %103 1
186%120 = OpCompositeExtract %v2float %114 1
187%121 = OpFOrdEqual %v2bool %119 %120
188%122 = OpAll %bool %121
189%123 = OpLogicalAnd %bool %118 %122
190%124 = OpCompositeExtract %v2float %103 2
191%125 = OpCompositeExtract %v2float %114 2
192%126 = OpFOrdEqual %v2bool %124 %125
193%127 = OpAll %bool %126
194%128 = OpLogicalAnd %bool %123 %127
195OpBranch %102
196%102 = OpLabel
197%129 = OpPhi %bool %false %65 %128 %101
198OpSelectionMerge %131 None
199OpBranchConditional %129 %130 %131
200%130 = OpLabel
201%133 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
202%136 = OpLoad %v4float %133
203%132 = OpOuterProduct %mat4v4float %136 %137
204%145 = OpCompositeConstruct %v4float %float_n1_25 %float_0 %float_0_75 %float_2_25
205%146 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %float_0
206%147 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %float_0
207%148 = OpCompositeConstruct %v4float %float_n2_5 %float_0 %float_1_5 %float_4_5
208%149 = OpCompositeConstruct %mat4v4float %145 %146 %147 %148
209%151 = OpCompositeExtract %v4float %132 0
210%152 = OpCompositeExtract %v4float %149 0
211%153 = OpFOrdEqual %v4bool %151 %152
212%154 = OpAll %bool %153
213%155 = OpCompositeExtract %v4float %132 1
214%156 = OpCompositeExtract %v4float %149 1
215%157 = OpFOrdEqual %v4bool %155 %156
216%158 = OpAll %bool %157
217%159 = OpLogicalAnd %bool %154 %158
218%160 = OpCompositeExtract %v4float %132 2
219%161 = OpCompositeExtract %v4float %149 2
220%162 = OpFOrdEqual %v4bool %160 %161
221%163 = OpAll %bool %162
222%164 = OpLogicalAnd %bool %159 %163
223%165 = OpCompositeExtract %v4float %132 3
224%166 = OpCompositeExtract %v4float %149 3
225%167 = OpFOrdEqual %v4bool %165 %166
226%168 = OpAll %bool %167
227%169 = OpLogicalAnd %bool %164 %168
228OpBranch %131
229%131 = OpLabel
230%170 = OpPhi %bool %false %102 %169 %130
231OpSelectionMerge %172 None
232OpBranchConditional %170 %171 %172
233%171 = OpLabel
234%174 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
235%175 = OpLoad %v4float %174
236%176 = OpLoad %v2float %c12
237%173 = OpOuterProduct %mat2v4float %175 %176
238%178 = OpCompositeConstruct %v4float %float_n1_25 %float_0 %float_0_75 %float_2_25
239%179 = OpCompositeConstruct %v4float %float_n2_5 %float_0 %float_1_5 %float_4_5
240%180 = OpCompositeConstruct %mat2v4float %178 %179
241%181 = OpCompositeExtract %v4float %173 0
242%182 = OpCompositeExtract %v4float %180 0
243%183 = OpFOrdEqual %v4bool %181 %182
244%184 = OpAll %bool %183
245%185 = OpCompositeExtract %v4float %173 1
246%186 = OpCompositeExtract %v4float %180 1
247%187 = OpFOrdEqual %v4bool %185 %186
248%188 = OpAll %bool %187
249%189 = OpLogicalAnd %bool %184 %188
250OpBranch %172
251%172 = OpLabel
252%190 = OpPhi %bool %false %131 %189 %171
253OpSelectionMerge %192 None
254OpBranchConditional %190 %191 %192
255%191 = OpLabel
256%194 = OpLoad %v2float %c12
257%195 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
258%196 = OpLoad %v4float %195
259%193 = OpOuterProduct %mat4v2float %194 %196
260%198 = OpCompositeConstruct %v2float %float_n1_25 %float_n2_5
261%199 = OpCompositeConstruct %v2float %float_0 %float_0
262%200 = OpCompositeConstruct %v2float %float_0_75 %float_1_5
263%201 = OpCompositeConstruct %v2float %float_2_25 %float_4_5
264%202 = OpCompositeConstruct %mat4v2float %198 %199 %200 %201
265%203 = OpCompositeExtract %v2float %193 0
266%204 = OpCompositeExtract %v2float %202 0
267%205 = OpFOrdEqual %v2bool %203 %204
268%206 = OpAll %bool %205
269%207 = OpCompositeExtract %v2float %193 1
270%208 = OpCompositeExtract %v2float %202 1
271%209 = OpFOrdEqual %v2bool %207 %208
272%210 = OpAll %bool %209
273%211 = OpLogicalAnd %bool %206 %210
274%212 = OpCompositeExtract %v2float %193 2
275%213 = OpCompositeExtract %v2float %202 2
276%214 = OpFOrdEqual %v2bool %212 %213
277%215 = OpAll %bool %214
278%216 = OpLogicalAnd %bool %211 %215
279%217 = OpCompositeExtract %v2float %193 3
280%218 = OpCompositeExtract %v2float %202 3
281%219 = OpFOrdEqual %v2bool %217 %218
282%220 = OpAll %bool %219
283%221 = OpLogicalAnd %bool %216 %220
284OpBranch %192
285%192 = OpLabel
286%222 = OpPhi %bool %false %172 %221 %191
287OpSelectionMerge %227 None
288OpBranchConditional %222 %225 %226
289%225 = OpLabel
290%228 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
291%229 = OpLoad %v4float %228
292OpStore %223 %229
293OpBranch %227
294%226 = OpLabel
295%230 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
296%231 = OpLoad %v4float %230
297OpStore %223 %231
298OpBranch %227
299%227 = OpLabel
300%232 = OpLoad %v4float %223
301OpReturnValue %232
302OpFunctionEnd
303