blob: f8b179c0918ded1dffad5a8b1f10838bf5081883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
|
switch.frag
ERROR: 0:11: 'switch' : condition must be a scalar integer expression
ERROR: 0:14: 'switch' : condition must be a scalar integer expression
ERROR: 0:21: 'switch' : last case/default label not followed by statements
ERROR: 0:28: 'switch' : cannot have statements before first case/default label
ERROR: 0:43: 'default' : duplicate label
ERROR: 0:63: 'case' : duplicated value
ERROR: 0:65: 'case' : scalar integer expression required
ERROR: 0:67: 'case' : constant expression required
ERROR: 0:89: '' : break statement only allowed in switch and loops
ERROR: 0:99: 'case' : cannot be nested inside control flow
ERROR: 0:104: 'case' : cannot be nested inside control flow
ERROR: 0:108: 'case' : cannot be nested inside control flow
ERROR: 0:115: 'default' : cannot be nested inside control flow
ERROR: 0:119: 'case' : cannot appear outside switch statement
ERROR: 0:120: 'default' : cannot appear outside switch statement
ERROR: 0:126: 'onlyInSwitch' : undeclared identifier
ERROR: 0:128: 'switch' : last case/default label not followed by statements
ERROR: 0:140: 'nestedX' : undeclared identifier
ERROR: 0:157: 'nestedZ' : undeclared identifier
ERROR: 19 compilation errors. No code generated.
Shader version: 300
ERROR: node is still EOpNull!
0:6 Function Definition: main( (global void)
0:6 Function Parameters:
0:? Sequence
0:11 'f' (temp highp float)
0:14 'a' (temp 2-element array of mediump int)
0:17 'c' (uniform mediump int)
0:21 switch
0:21 condition
0:21 'c' (uniform mediump int)
0:21 body
0:21 Sequence
0:23 case: with expression
0:23 Constant:
0:23 2 (const int)
0:21 Sequence
0:21 Branch: Break
0:26 switch
0:26 condition
0:26 'c' (uniform mediump int)
0:26 body
0:26 Sequence
0:28 Sequence
0:28 move second child to first child (temp highp float)
0:28 'f' (temp highp float)
0:28 sine (global highp float)
0:28 'x' (smooth in highp float)
0:29 case: with expression
0:29 Constant:
0:29 2 (const int)
0:? Sequence
0:30 move second child to first child (temp highp float)
0:30 'f' (temp highp float)
0:30 cosine (global highp float)
0:30 'x' (smooth in highp float)
0:31 Branch: Break
0:34 switch
0:34 condition
0:34 'c' (uniform mediump int)
0:34 body
0:34 Sequence
0:35 default:
0:? Sequence
0:36 Branch: Break
0:37 case: with expression
0:37 Constant:
0:37 1 (const int)
0:? Sequence
0:38 move second child to first child (temp highp float)
0:38 'f' (temp highp float)
0:38 sine (global highp float)
0:38 'x' (smooth in highp float)
0:39 Branch: Break
0:40 case: with expression
0:40 Constant:
0:40 2 (const int)
0:? Sequence
0:41 move second child to first child (temp highp float)
0:41 'f' (temp highp float)
0:41 cosine (global highp float)
0:41 'x' (smooth in highp float)
0:42 Branch: Break
0:43 default:
0:? Sequence
0:44 move second child to first child (temp highp float)
0:44 'f' (temp highp float)
0:44 tangent (global highp float)
0:44 'x' (smooth in highp float)
0:47 switch
0:47 condition
0:47 'c' (uniform mediump int)
0:47 body
0:47 Sequence
0:48 case: with expression
0:48 Constant:
0:48 1 (const int)
0:? Sequence
0:49 move second child to first child (temp highp float)
0:49 'f' (temp highp float)
0:49 sine (global highp float)
0:49 'x' (smooth in highp float)
0:50 Branch: Break
0:51 case: with expression
0:51 Constant:
0:51 2 (const int)
0:? Sequence
0:52 switch
0:52 condition
0:52 'd' (uniform mediump int)
0:52 body
0:52 Sequence
0:53 case: with expression
0:53 Constant:
0:53 1 (const int)
0:? Sequence
0:54 move second child to first child (temp highp float)
0:54 'f' (temp highp float)
0:54 component-wise multiply (temp highp float)
0:54 component-wise multiply (temp highp float)
0:54 'x' (smooth in highp float)
0:54 'x' (smooth in highp float)
0:54 'x' (smooth in highp float)
0:55 Branch: Break
0:56 case: with expression
0:56 Constant:
0:56 2 (const int)
0:? Sequence
0:57 move second child to first child (temp highp float)
0:57 'f' (temp highp float)
0:57 component-wise multiply (temp highp float)
0:57 'x' (smooth in highp float)
0:57 'x' (smooth in highp float)
0:58 Branch: Break
0:60 Branch: Break
0:61 default:
0:? Sequence
0:62 move second child to first child (temp highp float)
0:62 'f' (temp highp float)
0:62 tangent (global highp float)
0:62 'x' (smooth in highp float)
0:63 case: with expression
0:63 Constant:
0:63 1 (const int)
0:? Sequence
0:64 Branch: Break
0:65 case: with expression
0:65 Constant:
0:65 3.800000
0:? Sequence
0:66 Branch: Break
0:67 case: with expression
0:67 'c' (uniform mediump int)
0:? Sequence
0:68 Branch: Break
0:71 switch
0:71 condition
0:71 'c' (uniform mediump int)
0:71 body
0:71 Sequence
0:72 case: with expression
0:72 Constant:
0:72 1 (const int)
0:? Sequence
0:73 move second child to first child (temp highp float)
0:73 'f' (temp highp float)
0:73 sine (global highp float)
0:73 'x' (smooth in highp float)
0:74 Branch: Break
0:75 case: with expression
0:75 Constant:
0:75 2 (const int)
0:? Sequence
0:76 switch
0:76 condition
0:76 'd' (uniform mediump int)
0:76 body
0:76 Sequence
0:77 case: with expression
0:77 Constant:
0:77 1 (const int)
0:? Sequence
0:78 move second child to first child (temp highp float)
0:78 'f' (temp highp float)
0:78 component-wise multiply (temp highp float)
0:78 component-wise multiply (temp highp float)
0:78 'x' (smooth in highp float)
0:78 'x' (smooth in highp float)
0:78 'x' (smooth in highp float)
0:79 Branch: Break
0:80 case: with expression
0:80 Constant:
0:80 2 (const int)
0:? Sequence
0:81 move second child to first child (temp highp float)
0:81 'f' (temp highp float)
0:81 component-wise multiply (temp highp float)
0:81 'x' (smooth in highp float)
0:81 'x' (smooth in highp float)
0:82 Branch: Break
0:84 Branch: Break
0:85 default:
0:? Sequence
0:86 move second child to first child (temp highp float)
0:86 'f' (temp highp float)
0:86 tangent (global highp float)
0:86 'x' (smooth in highp float)
0:89 Branch: Break
0:91 switch
0:91 condition
0:91 'c' (uniform mediump int)
0:91 body
0:91 Sequence
0:92 case: with expression
0:92 Constant:
0:92 1 (const int)
0:? Sequence
0:93 move second child to first child (temp highp float)
0:93 'f' (temp highp float)
0:93 sine (global highp float)
0:93 'x' (smooth in highp float)
0:94 Branch: Break
0:95 case: with expression
0:95 Constant:
0:95 2 (const int)
0:? Sequence
0:96 switch
0:96 condition
0:96 'd' (uniform mediump int)
0:96 body
0:96 Sequence
0:97 case: with expression
0:97 Constant:
0:97 1 (const int)
0:? Sequence
0:? Sequence
0:100 Branch: Break
0:102 move second child to first child (temp highp float)
0:102 'f' (temp highp float)
0:102 component-wise multiply (temp highp float)
0:102 component-wise multiply (temp highp float)
0:102 'x' (smooth in highp float)
0:102 'x' (smooth in highp float)
0:102 'x' (smooth in highp float)
0:103 Test condition and select (temp void)
0:103 Condition
0:103 Compare Less Than (temp bool)
0:103 'c' (uniform mediump int)
0:103 'd' (uniform mediump int)
0:103 true case
0:? Sequence
0:105 move second child to first child (temp highp float)
0:105 'f' (temp highp float)
0:105 component-wise multiply (temp highp float)
0:105 'x' (smooth in highp float)
0:105 'x' (smooth in highp float)
0:107 Test condition and select (temp void)
0:107 Condition
0:107 Compare Less Than (temp bool)
0:107 'd' (uniform mediump int)
0:107 'c' (uniform mediump int)
0:107 true case is null
0:109 Branch: Break
0:111 Branch: Break
0:112 case: with expression
0:112 Constant:
0:112 4 (const int)
0:? Sequence
0:113 move second child to first child (temp highp float)
0:113 'f' (temp highp float)
0:113 tangent (global highp float)
0:113 'x' (smooth in highp float)
0:114 Test condition and select (temp void)
0:114 Condition
0:114 Compare Less Than (temp bool)
0:114 'f' (temp highp float)
0:114 Constant:
0:114 0.000000
0:114 true case is null
0:116 Branch: Break
0:122 switch
0:122 condition
0:122 Constant:
0:122 0 (const int)
0:122 body
0:122 Sequence
0:123 default:
0:? Sequence
0:124 Sequence
0:124 move second child to first child (temp mediump int)
0:124 'onlyInSwitch' (temp mediump int)
0:124 Constant:
0:124 0 (const int)
0:126 'onlyInSwitch' (temp float)
0:128 switch
0:128 condition
0:128 Constant:
0:128 0 (const int)
0:128 body
0:128 Sequence
0:129 default:
0:128 Sequence
0:128 Branch: Break
0:133 switch
0:133 condition
0:133 'c' (uniform mediump int)
0:133 body
0:133 Sequence
0:134 case: with expression
0:134 Constant:
0:134 1 (const int)
0:? Sequence
0:? Sequence
0:137 Branch: Break
0:139 case: with expression
0:139 Constant:
0:139 2 (const int)
0:? Sequence
0:140 'nestedX' (temp float)
0:143 Branch: Break
0:144 case: with expression
0:144 Constant:
0:144 3 (const int)
0:? Sequence
0:146 Branch: Break
0:147 Branch: Break
0:148 case: with expression
0:148 Constant:
0:148 4 (const int)
0:? Sequence
0:149 Sequence
0:149 move second child to first child (temp mediump int)
0:149 'linearY' (temp mediump int)
0:149 'linearZ' (temp mediump int)
0:150 Branch: Break
0:151 case: with expression
0:151 Constant:
0:151 5 (const int)
0:? Sequence
0:153 Branch: Break
0:154 case: with expression
0:154 Constant:
0:154 6 (const int)
0:? Sequence
0:155 Constant:
0:155 4 (const int)
0:157 'nestedZ' (temp float)
0:? Linker Objects
0:? 'c' (uniform mediump int)
0:? 'd' (uniform mediump int)
0:? 'x' (smooth in highp float)
Linked fragment stage:
Shader version: 300
ERROR: node is still EOpNull!
0:6 Function Definition: main( (global void)
0:6 Function Parameters:
0:? Sequence
0:11 'f' (temp highp float)
0:14 'a' (temp 2-element array of mediump int)
0:17 'c' (uniform mediump int)
0:21 switch
0:21 condition
0:21 'c' (uniform mediump int)
0:21 body
0:21 Sequence
0:23 case: with expression
0:23 Constant:
0:23 2 (const int)
0:21 Sequence
0:21 Branch: Break
0:26 switch
0:26 condition
0:26 'c' (uniform mediump int)
0:26 body
0:26 Sequence
0:28 Sequence
0:28 move second child to first child (temp highp float)
0:28 'f' (temp highp float)
0:28 sine (global highp float)
0:28 'x' (smooth in highp float)
0:29 case: with expression
0:29 Constant:
0:29 2 (const int)
0:? Sequence
0:30 move second child to first child (temp highp float)
0:30 'f' (temp highp float)
0:30 cosine (global highp float)
0:30 'x' (smooth in highp float)
0:31 Branch: Break
0:34 switch
0:34 condition
0:34 'c' (uniform mediump int)
0:34 body
0:34 Sequence
0:35 default:
0:? Sequence
0:36 Branch: Break
0:37 case: with expression
0:37 Constant:
0:37 1 (const int)
0:? Sequence
0:38 move second child to first child (temp highp float)
0:38 'f' (temp highp float)
0:38 sine (global highp float)
0:38 'x' (smooth in highp float)
0:39 Branch: Break
0:40 case: with expression
0:40 Constant:
0:40 2 (const int)
0:? Sequence
0:41 move second child to first child (temp highp float)
0:41 'f' (temp highp float)
0:41 cosine (global highp float)
0:41 'x' (smooth in highp float)
0:42 Branch: Break
0:43 default:
0:? Sequence
0:44 move second child to first child (temp highp float)
0:44 'f' (temp highp float)
0:44 tangent (global highp float)
0:44 'x' (smooth in highp float)
0:47 switch
0:47 condition
0:47 'c' (uniform mediump int)
0:47 body
0:47 Sequence
0:48 case: with expression
0:48 Constant:
0:48 1 (const int)
0:? Sequence
0:49 move second child to first child (temp highp float)
0:49 'f' (temp highp float)
0:49 sine (global highp float)
0:49 'x' (smooth in highp float)
0:50 Branch: Break
0:51 case: with expression
0:51 Constant:
0:51 2 (const int)
0:? Sequence
0:52 switch
0:52 condition
0:52 'd' (uniform mediump int)
0:52 body
0:52 Sequence
0:53 case: with expression
0:53 Constant:
0:53 1 (const int)
0:? Sequence
0:54 move second child to first child (temp highp float)
0:54 'f' (temp highp float)
0:54 component-wise multiply (temp highp float)
0:54 component-wise multiply (temp highp float)
0:54 'x' (smooth in highp float)
0:54 'x' (smooth in highp float)
0:54 'x' (smooth in highp float)
0:55 Branch: Break
0:56 case: with expression
0:56 Constant:
0:56 2 (const int)
0:? Sequence
0:57 move second child to first child (temp highp float)
0:57 'f' (temp highp float)
0:57 component-wise multiply (temp highp float)
0:57 'x' (smooth in highp float)
0:57 'x' (smooth in highp float)
0:58 Branch: Break
0:60 Branch: Break
0:61 default:
0:? Sequence
0:62 move second child to first child (temp highp float)
0:62 'f' (temp highp float)
0:62 tangent (global highp float)
0:62 'x' (smooth in highp float)
0:63 case: with expression
0:63 Constant:
0:63 1 (const int)
0:? Sequence
0:64 Branch: Break
0:65 case: with expression
0:65 Constant:
0:65 3.800000
0:? Sequence
0:66 Branch: Break
0:67 case: with expression
0:67 'c' (uniform mediump int)
0:? Sequence
0:68 Branch: Break
0:71 switch
0:71 condition
0:71 'c' (uniform mediump int)
0:71 body
0:71 Sequence
0:72 case: with expression
0:72 Constant:
0:72 1 (const int)
0:? Sequence
0:73 move second child to first child (temp highp float)
0:73 'f' (temp highp float)
0:73 sine (global highp float)
0:73 'x' (smooth in highp float)
0:74 Branch: Break
0:75 case: with expression
0:75 Constant:
0:75 2 (const int)
0:? Sequence
0:76 switch
0:76 condition
0:76 'd' (uniform mediump int)
0:76 body
0:76 Sequence
0:77 case: with expression
0:77 Constant:
0:77 1 (const int)
0:? Sequence
0:78 move second child to first child (temp highp float)
0:78 'f' (temp highp float)
0:78 component-wise multiply (temp highp float)
0:78 component-wise multiply (temp highp float)
0:78 'x' (smooth in highp float)
0:78 'x' (smooth in highp float)
0:78 'x' (smooth in highp float)
0:79 Branch: Break
0:80 case: with expression
0:80 Constant:
0:80 2 (const int)
0:? Sequence
0:81 move second child to first child (temp highp float)
0:81 'f' (temp highp float)
0:81 component-wise multiply (temp highp float)
0:81 'x' (smooth in highp float)
0:81 'x' (smooth in highp float)
0:82 Branch: Break
0:84 Branch: Break
0:85 default:
0:? Sequence
0:86 move second child to first child (temp highp float)
0:86 'f' (temp highp float)
0:86 tangent (global highp float)
0:86 'x' (smooth in highp float)
0:89 Branch: Break
0:91 switch
0:91 condition
0:91 'c' (uniform mediump int)
0:91 body
0:91 Sequence
0:92 case: with expression
0:92 Constant:
0:92 1 (const int)
0:? Sequence
0:93 move second child to first child (temp highp float)
0:93 'f' (temp highp float)
0:93 sine (global highp float)
0:93 'x' (smooth in highp float)
0:94 Branch: Break
0:95 case: with expression
0:95 Constant:
0:95 2 (const int)
0:? Sequence
0:96 switch
0:96 condition
0:96 'd' (uniform mediump int)
0:96 body
0:96 Sequence
0:97 case: with expression
0:97 Constant:
0:97 1 (const int)
0:? Sequence
0:? Sequence
0:100 Branch: Break
0:102 move second child to first child (temp highp float)
0:102 'f' (temp highp float)
0:102 component-wise multiply (temp highp float)
0:102 component-wise multiply (temp highp float)
0:102 'x' (smooth in highp float)
0:102 'x' (smooth in highp float)
0:102 'x' (smooth in highp float)
0:103 Test condition and select (temp void)
0:103 Condition
0:103 Compare Less Than (temp bool)
0:103 'c' (uniform mediump int)
0:103 'd' (uniform mediump int)
0:103 true case
0:? Sequence
0:105 move second child to first child (temp highp float)
0:105 'f' (temp highp float)
0:105 component-wise multiply (temp highp float)
0:105 'x' (smooth in highp float)
0:105 'x' (smooth in highp float)
0:107 Test condition and select (temp void)
0:107 Condition
0:107 Compare Less Than (temp bool)
0:107 'd' (uniform mediump int)
0:107 'c' (uniform mediump int)
0:107 true case is null
0:109 Branch: Break
0:111 Branch: Break
0:112 case: with expression
0:112 Constant:
0:112 4 (const int)
0:? Sequence
0:113 move second child to first child (temp highp float)
0:113 'f' (temp highp float)
0:113 tangent (global highp float)
0:113 'x' (smooth in highp float)
0:114 Test condition and select (temp void)
0:114 Condition
0:114 Compare Less Than (temp bool)
0:114 'f' (temp highp float)
0:114 Constant:
0:114 0.000000
0:114 true case is null
0:116 Branch: Break
0:122 switch
0:122 condition
0:122 Constant:
0:122 0 (const int)
0:122 body
0:122 Sequence
0:123 default:
0:? Sequence
0:124 Sequence
0:124 move second child to first child (temp mediump int)
0:124 'onlyInSwitch' (temp mediump int)
0:124 Constant:
0:124 0 (const int)
0:126 'onlyInSwitch' (temp float)
0:128 switch
0:128 condition
0:128 Constant:
0:128 0 (const int)
0:128 body
0:128 Sequence
0:129 default:
0:128 Sequence
0:128 Branch: Break
0:133 switch
0:133 condition
0:133 'c' (uniform mediump int)
0:133 body
0:133 Sequence
0:134 case: with expression
0:134 Constant:
0:134 1 (const int)
0:? Sequence
0:? Sequence
0:137 Branch: Break
0:139 case: with expression
0:139 Constant:
0:139 2 (const int)
0:? Sequence
0:140 'nestedX' (temp float)
0:143 Branch: Break
0:144 case: with expression
0:144 Constant:
0:144 3 (const int)
0:? Sequence
0:146 Branch: Break
0:147 Branch: Break
0:148 case: with expression
0:148 Constant:
0:148 4 (const int)
0:? Sequence
0:149 Sequence
0:149 move second child to first child (temp mediump int)
0:149 'linearY' (temp mediump int)
0:149 'linearZ' (temp mediump int)
0:150 Branch: Break
0:151 case: with expression
0:151 Constant:
0:151 5 (const int)
0:? Sequence
0:153 Branch: Break
0:154 case: with expression
0:154 Constant:
0:154 6 (const int)
0:? Sequence
0:155 Constant:
0:155 4 (const int)
0:157 'nestedZ' (temp float)
0:? Linker Objects
0:? 'c' (uniform mediump int)
0:? 'd' (uniform mediump int)
0:? 'x' (smooth in highp float)
|