2 // Module Version 10000
3 // Generated by (magic number): 80001
4 // Id's are bound by 455
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
9 EntryPoint Fragment 4 "main" 39 53 157 322 446 448 450 452 454
10 ExecutionMode 4 OriginUpperLeft
33 Name 322 "gl_FragColor"
53 Decorate 157(i_i4) Flat
54 Decorate 446(i_i2) Flat
55 Decorate 448(i_i3) Flat
59 7: TypePointer Function 6(bool)
61 10: TypePointer Private 9(int)
62 11(u_i): 10(ptr) Variable Private
64 14: 13(int) Constant 0
66 17: TypePointer Private 16(float)
67 18(u_f): 17(ptr) Variable Private
68 20: 16(float) Constant 0
69 23: TypeVector 6(bool) 2
70 24: TypePointer Function 23(bvec2)
71 31: TypeVector 6(bool) 3
72 32: TypePointer Function 31(bvec3)
73 38: TypePointer Input 9(int)
74 39(i_i): 38(ptr) Variable Input
75 43: TypeVector 6(bool) 4
76 44: TypePointer Function 43(bvec4)
77 52: TypePointer Input 16(float)
78 53(i_f): 52(ptr) Variable Input
79 57: TypePointer Function 9(int)
82 66: TypeVector 9(int) 2
83 67: TypePointer Function 66(ivec2)
84 69: TypeVector 16(float) 2
85 70: TypePointer Private 69(fvec2)
86 71(u_f2): 70(ptr) Variable Private
87 75: 66(ivec2) ConstantComposite 62 62
88 76: 66(ivec2) ConstantComposite 63 63
89 79: TypeVector 9(int) 3
90 80: TypePointer Function 79(ivec3)
91 82: TypeVector 16(float) 3
92 83: TypePointer Private 82(fvec3)
93 84(u_f3): 83(ptr) Variable Private
94 88: 79(ivec3) ConstantComposite 62 62 62
95 89: 79(ivec3) ConstantComposite 63 63 63
96 92: TypeVector 9(int) 4
97 93: TypePointer Function 92(ivec4)
98 95: TypeVector 16(float) 4
99 96: TypePointer Private 95(fvec4)
100 97(u_f4): 96(ptr) Variable Private
101 101: 92(ivec4) ConstantComposite 62 62 62 62
102 102: 92(ivec4) ConstantComposite 63 63 63 63
103 105: TypePointer Function 16(float)
104 109: TypePointer Function 69(fvec2)
105 113: TypePointer Function 82(fvec3)
106 117: TypePointer Function 95(fvec4)
107 124: 16(float) Constant 1065353216
108 132: 69(fvec2) ConstantComposite 20 20
109 133: 69(fvec2) ConstantComposite 124 124
110 141: 82(fvec3) ConstantComposite 20 20 20
111 142: 82(fvec3) ConstantComposite 124 124 124
112 150: 95(fvec4) ConstantComposite 20 20 20 20
113 151: 95(fvec4) ConstantComposite 124 124 124 124
114 156: TypePointer Input 92(ivec4)
115 157(i_i4): 156(ptr) Variable Input
116 159: TypeVector 13(int) 4
117 160: 159(ivec4) ConstantComposite 14 14 14 14
118 315: 13(int) Constant 1
119 321: TypePointer Output 95(fvec4)
120 322(gl_FragColor): 321(ptr) Variable Output
121 367: 13(int) Constant 2
122 380: 13(int) Constant 3
123 427: TypePointer Private 6(bool)
124 428(u_b): 427(ptr) Variable Private
125 429: TypePointer Private 23(bvec2)
126 430(u_b2): 429(ptr) Variable Private
127 431: TypePointer Private 31(bvec3)
128 432(u_b3): 431(ptr) Variable Private
129 433: TypePointer Private 43(bvec4)
130 434(u_b4): 433(ptr) Variable Private
131 435: TypePointer Private 66(ivec2)
132 436(u_i2): 435(ptr) Variable Private
133 437: TypePointer Private 79(ivec3)
134 438(u_i3): 437(ptr) Variable Private
135 439: TypePointer Private 92(ivec4)
136 440(u_i4): 439(ptr) Variable Private
137 441(i_b): 427(ptr) Variable Private
138 442(i_b2): 429(ptr) Variable Private
139 443(i_b3): 431(ptr) Variable Private
140 444(i_b4): 433(ptr) Variable Private
141 445: TypePointer Input 66(ivec2)
142 446(i_i2): 445(ptr) Variable Input
143 447: TypePointer Input 79(ivec3)
144 448(i_i3): 447(ptr) Variable Input
145 449: TypePointer Input 69(fvec2)
146 450(i_f2): 449(ptr) Variable Input
147 451: TypePointer Input 82(fvec3)
148 452(i_f3): 451(ptr) Variable Input
149 453: TypePointer Input 95(fvec4)
150 454(i_f4): 453(ptr) Variable Input
151 4(main): 2 Function None 3
153 8(b): 7(ptr) Variable Function
154 25(b2): 24(ptr) Variable Function
155 33(b3): 32(ptr) Variable Function
156 45(b4): 44(ptr) Variable Function
157 58(i): 57(ptr) Variable Function
158 68(i2): 67(ptr) Variable Function
159 81(i3): 80(ptr) Variable Function
160 94(i4): 93(ptr) Variable Function
161 106(f): 105(ptr) Variable Function
162 110(f2): 109(ptr) Variable Function
163 114(f3): 113(ptr) Variable Function
164 118(f4): 117(ptr) Variable Function
165 297: 105(ptr) Variable Function
166 307: 105(ptr) Variable Function
167 323: 117(ptr) Variable Function
168 417(cv2): 93(ptr) Variable Function
169 418(cv5): 44(ptr) Variable Function
170 12: 9(int) Load 11(u_i)
171 15: 6(bool) INotEqual 12 14
172 19: 16(float) Load 18(u_f)
173 21: 6(bool) FOrdNotEqual 19 20
174 22: 6(bool) LogicalNotEqual 15 21
176 26: 9(int) Load 11(u_i)
177 27: 6(bool) INotEqual 26 14
178 28: 16(float) Load 18(u_f)
179 29: 6(bool) FOrdNotEqual 28 20
180 30: 23(bvec2) CompositeConstruct 27 29
182 34: 9(int) Load 11(u_i)
183 35: 6(bool) INotEqual 34 14
184 36: 16(float) Load 18(u_f)
185 37: 6(bool) FOrdNotEqual 36 20
186 40: 9(int) Load 39(i_i)
187 41: 6(bool) INotEqual 40 14
188 42: 31(bvec3) CompositeConstruct 35 37 41
190 46: 9(int) Load 11(u_i)
191 47: 6(bool) INotEqual 46 14
192 48: 16(float) Load 18(u_f)
193 49: 6(bool) FOrdNotEqual 48 20
194 50: 9(int) Load 39(i_i)
195 51: 6(bool) INotEqual 50 14
196 54: 16(float) Load 53(i_f)
197 55: 6(bool) FOrdNotEqual 54 20
198 56: 43(bvec4) CompositeConstruct 47 49 51 55
200 59: 16(float) Load 18(u_f)
201 60: 9(int) ConvertFToS 59
202 61: 6(bool) Load 8(b)
203 64: 9(int) Select 61 63 62
204 65: 9(int) IAdd 60 64
206 72: 69(fvec2) Load 71(u_f2)
207 73: 66(ivec2) ConvertFToS 72
208 74: 23(bvec2) Load 25(b2)
209 77: 66(ivec2) Select 74 76 75
210 78: 66(ivec2) IAdd 73 77
212 85: 82(fvec3) Load 84(u_f3)
213 86: 79(ivec3) ConvertFToS 85
214 87: 31(bvec3) Load 33(b3)
215 90: 79(ivec3) Select 87 89 88
216 91: 79(ivec3) IAdd 86 90
218 98: 95(fvec4) Load 97(u_f4)
219 99: 92(ivec4) ConvertFToS 98
220 100: 43(bvec4) Load 45(b4)
221 103: 92(ivec4) Select 100 102 101
222 104: 92(ivec4) IAdd 99 103
224 107: 9(int) Load 58(i)
225 108: 16(float) ConvertSToF 107
227 111: 66(ivec2) Load 68(i2)
228 112: 69(fvec2) ConvertSToF 111
230 115: 79(ivec3) Load 81(i3)
231 116: 82(fvec3) ConvertSToF 115
233 119: 92(ivec4) Load 94(i4)
234 120: 95(fvec4) ConvertSToF 119
236 121: 9(int) Load 58(i)
237 122: 16(float) ConvertSToF 121
238 123: 6(bool) Load 8(b)
239 125: 16(float) Select 123 124 20
240 126: 16(float) FAdd 122 125
241 127: 16(float) Load 106(f)
242 128: 16(float) FAdd 127 126
244 129: 66(ivec2) Load 68(i2)
245 130: 69(fvec2) ConvertSToF 129
246 131: 23(bvec2) Load 25(b2)
247 134: 69(fvec2) Select 131 133 132
248 135: 69(fvec2) FAdd 130 134
249 136: 69(fvec2) Load 110(f2)
250 137: 69(fvec2) FSub 136 135
252 138: 79(ivec3) Load 81(i3)
253 139: 82(fvec3) ConvertSToF 138
254 140: 31(bvec3) Load 33(b3)
255 143: 82(fvec3) Select 140 142 141
256 144: 82(fvec3) FAdd 139 143
257 145: 82(fvec3) Load 114(f3)
258 146: 82(fvec3) FDiv 145 144
260 147: 92(ivec4) Load 94(i4)
261 148: 95(fvec4) ConvertSToF 147
262 149: 43(bvec4) Load 45(b4)
263 152: 95(fvec4) Select 149 151 150
264 153: 95(fvec4) FAdd 148 152
265 154: 95(fvec4) Load 118(f4)
266 155: 95(fvec4) FAdd 154 153
268 158: 92(ivec4) Load 157(i_i4)
269 161: 43(bvec4) INotEqual 158 160
270 162: 95(fvec4) Select 161 151 150
271 163: 95(fvec4) Load 118(f4)
272 164: 95(fvec4) FAdd 163 162
274 165: 95(fvec4) Load 97(u_f4)
275 166: 43(bvec4) FOrdNotEqual 165 150
276 167: 95(fvec4) Select 166 151 150
277 168: 95(fvec4) Load 118(f4)
278 169: 95(fvec4) FAdd 168 167
280 170: 16(float) Load 106(f)
281 171: 9(int) Load 58(i)
282 172: 16(float) ConvertSToF 171
283 173: 16(float) FSub 170 172
284 174: 16(float) Load 106(f)
285 175: 16(float) FAdd 174 173
287 176: 16(float) Load 106(f)
288 177: 9(int) Load 58(i)
289 178: 16(float) ConvertSToF 177
290 179: 69(fvec2) CompositeConstruct 176 178
291 180: 66(ivec2) Load 68(i2)
292 181: 69(fvec2) ConvertSToF 180
293 182: 69(fvec2) FAdd 179 181
294 183: 69(fvec2) Load 110(f2)
295 184: 69(fvec2) FAdd 183 182
297 185: 79(ivec3) Load 81(i3)
298 186: 82(fvec3) ConvertSToF 185
299 187: 16(float) Load 106(f)
300 188: 9(int) Load 58(i)
301 189: 16(float) ConvertSToF 188
302 190: 16(float) Load 106(f)
303 191: 82(fvec3) CompositeConstruct 187 189 190
304 192: 82(fvec3) FAdd 186 191
305 193: 82(fvec3) Load 114(f3)
306 194: 82(fvec3) FAdd 193 192
308 195: 6(bool) Load 8(b)
309 196: 16(float) Select 195 124 20
310 197: 9(int) Load 58(i)
311 198: 16(float) ConvertSToF 197
312 199: 16(float) Load 106(f)
313 200: 9(int) Load 58(i)
314 201: 16(float) ConvertSToF 200
315 202: 95(fvec4) CompositeConstruct 196 198 199 201
316 203: 92(ivec4) Load 94(i4)
317 204: 95(fvec4) ConvertSToF 203
318 205: 95(fvec4) FAdd 202 204
319 206: 95(fvec4) Load 118(f4)
320 207: 95(fvec4) FAdd 206 205
322 208: 16(float) Load 106(f)
323 209: 9(int) Load 58(i)
324 210: 16(float) ConvertSToF 209
325 211: 69(fvec2) CompositeConstruct 208 210
326 212: 9(int) Load 58(i)
327 213: 16(float) ConvertSToF 212
328 214: 69(fvec2) VectorTimesScalar 211 213
329 215: 69(fvec2) Load 110(f2)
330 216: 69(fvec2) FAdd 215 214
332 217: 16(float) Load 106(f)
333 218: 9(int) Load 58(i)
334 219: 16(float) ConvertSToF 218
335 220: 16(float) Load 106(f)
336 221: 82(fvec3) CompositeConstruct 217 219 220
337 222: 9(int) Load 58(i)
338 223: 16(float) ConvertSToF 222
339 224: 82(fvec3) CompositeConstruct 223 223 223
340 225: 82(fvec3) FAdd 221 224
341 226: 82(fvec3) Load 114(f3)
342 227: 82(fvec3) FAdd 226 225
344 228: 9(int) Load 58(i)
345 229: 16(float) ConvertSToF 228
346 230: 6(bool) Load 8(b)
347 231: 16(float) Select 230 124 20
348 232: 9(int) Load 58(i)
349 233: 16(float) ConvertSToF 232
350 234: 16(float) Load 106(f)
351 235: 9(int) Load 58(i)
352 236: 16(float) ConvertSToF 235
353 237: 95(fvec4) CompositeConstruct 231 233 234 236
354 238: 95(fvec4) CompositeConstruct 229 229 229 229
355 239: 95(fvec4) FSub 238 237
356 240: 95(fvec4) Load 118(f4)
357 241: 95(fvec4) FAdd 240 239
359 242: 16(float) Load 106(f)
360 243: 9(int) ConvertFToS 242
361 244: 9(int) Load 58(i)
362 245: 66(ivec2) CompositeConstruct 243 244
363 246: 66(ivec2) Load 68(i2)
364 247: 66(ivec2) IAdd 246 245
366 248: 16(float) Load 106(f)
367 249: 9(int) ConvertFToS 248
368 250: 9(int) Load 58(i)
369 251: 16(float) Load 106(f)
370 252: 9(int) ConvertFToS 251
371 253: 79(ivec3) CompositeConstruct 249 250 252
372 254: 79(ivec3) Load 81(i3)
373 255: 79(ivec3) IAdd 254 253
375 256: 6(bool) Load 8(b)
376 257: 9(int) Select 256 63 62
377 258: 9(int) Load 58(i)
378 259: 16(float) Load 106(f)
379 260: 9(int) ConvertFToS 259
380 261: 9(int) Load 58(i)
381 262: 92(ivec4) CompositeConstruct 257 258 260 261
382 263: 92(ivec4) Load 94(i4)
383 264: 92(ivec4) IAdd 263 262
385 265: 16(float) Load 106(f)
386 266: 9(int) Load 58(i)
387 267: 16(float) ConvertSToF 266
388 268: 6(bool) FOrdLessThan 265 267
389 269: 6(bool) LogicalNot 268
390 SelectionMerge 271 None
391 BranchConditional 269 270 271
393 272: 9(int) Load 58(i)
394 273: 16(float) ConvertSToF 272
395 274: 16(float) Load 106(f)
396 275: 6(bool) FOrdLessThan 273 274
399 276: 6(bool) Phi 268 5 275 270
400 277: 6(bool) LogicalNot 276
401 SelectionMerge 279 None
402 BranchConditional 277 278 279
404 280: 69(fvec2) Load 110(f2)
405 281: 66(ivec2) Load 68(i2)
406 282: 69(fvec2) ConvertSToF 281
407 283: 23(bvec2) FOrdEqual 280 282
411 285: 6(bool) Phi 276 271 284 278
412 286: 6(bool) LogicalNot 285
413 SelectionMerge 288 None
414 BranchConditional 286 287 288
416 289: 79(ivec3) Load 81(i3)
417 290: 82(fvec3) ConvertSToF 289
418 291: 82(fvec3) Load 114(f3)
419 292: 31(bvec3) FOrdNotEqual 290 291
423 294: 6(bool) Phi 285 279 293 287
424 SelectionMerge 296 None
425 BranchConditional 294 295 296
427 298: 6(bool) Load 8(b)
428 SelectionMerge 300 None
429 BranchConditional 298 299 303
431 301: 9(int) Load 58(i)
432 302: 16(float) ConvertSToF 301
436 304: 105(ptr) AccessChain 110(f2) 14
437 305: 16(float) Load 304
441 306: 16(float) Load 297
442 308: 23(bvec2) Load 25(b2)
443 309: 6(bool) CompositeExtract 308 0
444 SelectionMerge 311 None
445 BranchConditional 309 310 314
447 312: 105(ptr) AccessChain 114(f3) 14
448 313: 16(float) Load 312
452 316: 57(ptr) AccessChain 68(i2) 315
454 318: 16(float) ConvertSToF 317
458 319: 16(float) Load 307
459 320: 16(float) FAdd 306 319
463 324: 6(bool) Load 8(b)
464 325: 23(bvec2) Load 25(b2)
465 326: 6(bool) CompositeExtract 325 0
466 327: 6(bool) LogicalOr 324 326
467 328: 23(bvec2) Load 25(b2)
468 329: 6(bool) CompositeExtract 328 1
469 330: 6(bool) LogicalOr 327 329
470 331: 31(bvec3) Load 33(b3)
471 332: 6(bool) CompositeExtract 331 0
472 333: 6(bool) LogicalOr 330 332
473 334: 31(bvec3) Load 33(b3)
474 335: 6(bool) CompositeExtract 334 1
475 336: 6(bool) LogicalOr 333 335
476 337: 31(bvec3) Load 33(b3)
477 338: 6(bool) CompositeExtract 337 2
478 339: 6(bool) LogicalOr 336 338
479 340: 43(bvec4) Load 45(b4)
480 341: 6(bool) CompositeExtract 340 0
481 342: 6(bool) LogicalOr 339 341
482 343: 43(bvec4) Load 45(b4)
483 344: 6(bool) CompositeExtract 343 1
484 345: 6(bool) LogicalOr 342 344
485 346: 43(bvec4) Load 45(b4)
486 347: 6(bool) CompositeExtract 346 2
487 348: 6(bool) LogicalOr 345 347
488 349: 43(bvec4) Load 45(b4)
489 350: 6(bool) CompositeExtract 349 3
490 351: 6(bool) LogicalOr 348 350
491 SelectionMerge 353 None
492 BranchConditional 351 352 415
494 354: 9(int) Load 58(i)
495 355: 57(ptr) AccessChain 68(i2) 14
497 357: 9(int) IAdd 354 356
498 358: 57(ptr) AccessChain 68(i2) 315
500 360: 9(int) IAdd 357 359
501 361: 57(ptr) AccessChain 81(i3) 14
503 363: 9(int) IAdd 360 362
504 364: 57(ptr) AccessChain 81(i3) 315
506 366: 9(int) IAdd 363 365
507 368: 57(ptr) AccessChain 81(i3) 367
509 370: 9(int) IAdd 366 369
510 371: 57(ptr) AccessChain 94(i4) 14
512 373: 9(int) IAdd 370 372
513 374: 57(ptr) AccessChain 94(i4) 315
515 376: 9(int) IAdd 373 375
516 377: 57(ptr) AccessChain 94(i4) 367
518 379: 9(int) IAdd 376 378
519 381: 57(ptr) AccessChain 94(i4) 380
521 383: 9(int) IAdd 379 382
522 384: 16(float) ConvertSToF 383
523 385: 16(float) Load 106(f)
524 386: 16(float) FAdd 384 385
525 387: 105(ptr) AccessChain 110(f2) 14
526 388: 16(float) Load 387
527 389: 16(float) FAdd 386 388
528 390: 105(ptr) AccessChain 110(f2) 315
529 391: 16(float) Load 390
530 392: 16(float) FAdd 389 391
531 393: 105(ptr) AccessChain 114(f3) 14
532 394: 16(float) Load 393
533 395: 16(float) FAdd 392 394
534 396: 105(ptr) AccessChain 114(f3) 315
535 397: 16(float) Load 396
536 398: 16(float) FAdd 395 397
537 399: 105(ptr) AccessChain 114(f3) 367
538 400: 16(float) Load 399
539 401: 16(float) FAdd 398 400
540 402: 105(ptr) AccessChain 118(f4) 14
541 403: 16(float) Load 402
542 404: 16(float) FAdd 401 403
543 405: 105(ptr) AccessChain 118(f4) 315
544 406: 16(float) Load 405
545 407: 16(float) FAdd 404 406
546 408: 105(ptr) AccessChain 118(f4) 367
547 409: 16(float) Load 408
548 410: 16(float) FAdd 407 409
549 411: 105(ptr) AccessChain 118(f4) 380
550 412: 16(float) Load 411
551 413: 16(float) FAdd 410 412
552 414: 95(fvec4) CompositeConstruct 413 413 413 413
559 416: 95(fvec4) Load 323
560 Store 322(gl_FragColor) 416
562 419: 92(ivec4) Load 417(cv2)
563 420: 43(bvec4) INotEqual 419 160
565 421: 43(bvec4) Load 418(cv5)
566 422: 95(fvec4) Select 421 151 150
567 423: 16(float) CompositeExtract 422 0
568 424: 95(fvec4) Load 322(gl_FragColor)
569 425: 95(fvec4) CompositeConstruct 423 423 423 423
570 426: 95(fvec4) FAdd 424 425
571 Store 322(gl_FragColor) 426