1switch.frag 2ERROR: 0:11: 'switch' : condition must be a scalar integer expression 3ERROR: 0:14: 'switch' : condition must be a scalar integer expression 4ERROR: 0:21: 'switch' : last case/default label not followed by statements 5ERROR: 0:28: 'switch' : cannot have statements before first case/default label 6ERROR: 0:43: 'default' : duplicate label 7ERROR: 0:63: 'case' : duplicated value 8ERROR: 0:65: 'case' : scalar integer expression required 9ERROR: 0:67: 'case' : constant expression required 10ERROR: 0:89: '' : break statement only allowed in switch and loops 11ERROR: 0:99: 'case' : cannot be nested inside control flow 12ERROR: 0:104: 'case' : cannot be nested inside control flow 13ERROR: 0:108: 'case' : cannot be nested inside control flow 14ERROR: 0:115: 'default' : cannot be nested inside control flow 15ERROR: 0:119: 'case' : cannot appear outside switch statement 16ERROR: 0:120: 'default' : cannot appear outside switch statement 17ERROR: 0:126: 'onlyInSwitch' : undeclared identifier 18ERROR: 0:128: 'switch' : last case/default label not followed by statements 19ERROR: 0:140: 'nestedX' : undeclared identifier 20ERROR: 0:157: 'nestedZ' : undeclared identifier 21ERROR: 19 compilation errors. No code generated. 22 23 24Shader version: 300 25ERROR: node is still EOpNull! 260:6 Function Definition: main( ( global void) 270:6 Function Parameters: 280:? Sequence 290:11 'f' ( temp highp float) 300:14 'a' ( temp 2-element array of mediump int) 310:17 'c' ( uniform mediump int) 320:21 switch 330:21 condition 340:21 'c' ( uniform mediump int) 350:21 body 360:21 Sequence 370:23 case: with expression 380:23 Constant: 390:23 2 (const int) 400:21 Sequence 410:21 Branch: Break 420:26 switch 430:26 condition 440:26 'c' ( uniform mediump int) 450:26 body 460:26 Sequence 470:28 Sequence 480:28 move second child to first child ( temp highp float) 490:28 'f' ( temp highp float) 500:28 sine ( global highp float) 510:28 'x' ( smooth in highp float) 520:29 case: with expression 530:29 Constant: 540:29 2 (const int) 550:? Sequence 560:30 move second child to first child ( temp highp float) 570:30 'f' ( temp highp float) 580:30 cosine ( global highp float) 590:30 'x' ( smooth in highp float) 600:31 Branch: Break 610:34 switch 620:34 condition 630:34 'c' ( uniform mediump int) 640:34 body 650:34 Sequence 660:35 default: 670:? Sequence 680:36 Branch: Break 690:37 case: with expression 700:37 Constant: 710:37 1 (const int) 720:? Sequence 730:38 move second child to first child ( temp highp float) 740:38 'f' ( temp highp float) 750:38 sine ( global highp float) 760:38 'x' ( smooth in highp float) 770:39 Branch: Break 780:40 case: with expression 790:40 Constant: 800:40 2 (const int) 810:? Sequence 820:41 move second child to first child ( temp highp float) 830:41 'f' ( temp highp float) 840:41 cosine ( global highp float) 850:41 'x' ( smooth in highp float) 860:42 Branch: Break 870:43 default: 880:? Sequence 890:44 move second child to first child ( temp highp float) 900:44 'f' ( temp highp float) 910:44 tangent ( global highp float) 920:44 'x' ( smooth in highp float) 930:47 switch 940:47 condition 950:47 'c' ( uniform mediump int) 960:47 body 970:47 Sequence 980:48 case: with expression 990:48 Constant: 1000:48 1 (const int) 1010:? Sequence 1020:49 move second child to first child ( temp highp float) 1030:49 'f' ( temp highp float) 1040:49 sine ( global highp float) 1050:49 'x' ( smooth in highp float) 1060:50 Branch: Break 1070:51 case: with expression 1080:51 Constant: 1090:51 2 (const int) 1100:? Sequence 1110:52 switch 1120:52 condition 1130:52 'd' ( uniform mediump int) 1140:52 body 1150:52 Sequence 1160:53 case: with expression 1170:53 Constant: 1180:53 1 (const int) 1190:? Sequence 1200:54 move second child to first child ( temp highp float) 1210:54 'f' ( temp highp float) 1220:54 component-wise multiply ( temp highp float) 1230:54 component-wise multiply ( temp highp float) 1240:54 'x' ( smooth in highp float) 1250:54 'x' ( smooth in highp float) 1260:54 'x' ( smooth in highp float) 1270:55 Branch: Break 1280:56 case: with expression 1290:56 Constant: 1300:56 2 (const int) 1310:? Sequence 1320:57 move second child to first child ( temp highp float) 1330:57 'f' ( temp highp float) 1340:57 component-wise multiply ( temp highp float) 1350:57 'x' ( smooth in highp float) 1360:57 'x' ( smooth in highp float) 1370:58 Branch: Break 1380:60 Branch: Break 1390:61 default: 1400:? Sequence 1410:62 move second child to first child ( temp highp float) 1420:62 'f' ( temp highp float) 1430:62 tangent ( global highp float) 1440:62 'x' ( smooth in highp float) 1450:63 case: with expression 1460:63 Constant: 1470:63 1 (const int) 1480:? Sequence 1490:64 Branch: Break 1500:65 case: with expression 1510:65 Constant: 1520:65 3.800000 1530:? Sequence 1540:66 Branch: Break 1550:67 case: with expression 1560:67 'c' ( uniform mediump int) 1570:? Sequence 1580:68 Branch: Break 1590:71 switch 1600:71 condition 1610:71 'c' ( uniform mediump int) 1620:71 body 1630:71 Sequence 1640:72 case: with expression 1650:72 Constant: 1660:72 1 (const int) 1670:? Sequence 1680:73 move second child to first child ( temp highp float) 1690:73 'f' ( temp highp float) 1700:73 sine ( global highp float) 1710:73 'x' ( smooth in highp float) 1720:74 Branch: Break 1730:75 case: with expression 1740:75 Constant: 1750:75 2 (const int) 1760:? Sequence 1770:76 switch 1780:76 condition 1790:76 'd' ( uniform mediump int) 1800:76 body 1810:76 Sequence 1820:77 case: with expression 1830:77 Constant: 1840:77 1 (const int) 1850:? Sequence 1860:78 move second child to first child ( temp highp float) 1870:78 'f' ( temp highp float) 1880:78 component-wise multiply ( temp highp float) 1890:78 component-wise multiply ( temp highp float) 1900:78 'x' ( smooth in highp float) 1910:78 'x' ( smooth in highp float) 1920:78 'x' ( smooth in highp float) 1930:79 Branch: Break 1940:80 case: with expression 1950:80 Constant: 1960:80 2 (const int) 1970:? Sequence 1980:81 move second child to first child ( temp highp float) 1990:81 'f' ( temp highp float) 2000:81 component-wise multiply ( temp highp float) 2010:81 'x' ( smooth in highp float) 2020:81 'x' ( smooth in highp float) 2030:82 Branch: Break 2040:84 Branch: Break 2050:85 default: 2060:? Sequence 2070:86 move second child to first child ( temp highp float) 2080:86 'f' ( temp highp float) 2090:86 tangent ( global highp float) 2100:86 'x' ( smooth in highp float) 2110:89 Branch: Break 2120:91 switch 2130:91 condition 2140:91 'c' ( uniform mediump int) 2150:91 body 2160:91 Sequence 2170:92 case: with expression 2180:92 Constant: 2190:92 1 (const int) 2200:? Sequence 2210:93 move second child to first child ( temp highp float) 2220:93 'f' ( temp highp float) 2230:93 sine ( global highp float) 2240:93 'x' ( smooth in highp float) 2250:94 Branch: Break 2260:95 case: with expression 2270:95 Constant: 2280:95 2 (const int) 2290:? Sequence 2300:96 switch 2310:96 condition 2320:96 'd' ( uniform mediump int) 2330:96 body 2340:96 Sequence 2350:97 case: with expression 2360:97 Constant: 2370:97 1 (const int) 2380:? Sequence 2390:? Sequence 2400:100 Branch: Break 2410:102 move second child to first child ( temp highp float) 2420:102 'f' ( temp highp float) 2430:102 component-wise multiply ( temp highp float) 2440:102 component-wise multiply ( temp highp float) 2450:102 'x' ( smooth in highp float) 2460:102 'x' ( smooth in highp float) 2470:102 'x' ( smooth in highp float) 2480:103 Test condition and select ( temp void) 2490:103 Condition 2500:103 Compare Less Than ( temp bool) 2510:103 'c' ( uniform mediump int) 2520:103 'd' ( uniform mediump int) 2530:103 true case 2540:? Sequence 2550:105 move second child to first child ( temp highp float) 2560:105 'f' ( temp highp float) 2570:105 component-wise multiply ( temp highp float) 2580:105 'x' ( smooth in highp float) 2590:105 'x' ( smooth in highp float) 2600:107 Test condition and select ( temp void) 2610:107 Condition 2620:107 Compare Less Than ( temp bool) 2630:107 'd' ( uniform mediump int) 2640:107 'c' ( uniform mediump int) 2650:107 true case is null 2660:109 Branch: Break 2670:111 Branch: Break 2680:112 case: with expression 2690:112 Constant: 2700:112 4 (const int) 2710:? Sequence 2720:113 move second child to first child ( temp highp float) 2730:113 'f' ( temp highp float) 2740:113 tangent ( global highp float) 2750:113 'x' ( smooth in highp float) 2760:114 Test condition and select ( temp void) 2770:114 Condition 2780:114 Compare Less Than ( temp bool) 2790:114 'f' ( temp highp float) 2800:114 Constant: 2810:114 0.000000 2820:114 true case is null 2830:116 Branch: Break 2840:122 switch 2850:122 condition 2860:122 Constant: 2870:122 0 (const int) 2880:122 body 2890:122 Sequence 2900:123 default: 2910:? Sequence 2920:124 Sequence 2930:124 move second child to first child ( temp mediump int) 2940:124 'onlyInSwitch' ( temp mediump int) 2950:124 Constant: 2960:124 0 (const int) 2970:126 'onlyInSwitch' ( temp float) 2980:128 switch 2990:128 condition 3000:128 Constant: 3010:128 0 (const int) 3020:128 body 3030:128 Sequence 3040:129 default: 3050:128 Sequence 3060:128 Branch: Break 3070:133 switch 3080:133 condition 3090:133 'c' ( uniform mediump int) 3100:133 body 3110:133 Sequence 3120:134 case: with expression 3130:134 Constant: 3140:134 1 (const int) 3150:? Sequence 3160:? Sequence 3170:137 Branch: Break 3180:139 case: with expression 3190:139 Constant: 3200:139 2 (const int) 3210:? Sequence 3220:140 'nestedX' ( temp float) 3230:143 Branch: Break 3240:144 case: with expression 3250:144 Constant: 3260:144 3 (const int) 3270:? Sequence 3280:146 Branch: Break 3290:147 Branch: Break 3300:148 case: with expression 3310:148 Constant: 3320:148 4 (const int) 3330:? Sequence 3340:149 Sequence 3350:149 move second child to first child ( temp mediump int) 3360:149 'linearY' ( temp mediump int) 3370:149 'linearZ' ( temp mediump int) 3380:150 Branch: Break 3390:151 case: with expression 3400:151 Constant: 3410:151 5 (const int) 3420:? Sequence 3430:153 Branch: Break 3440:154 case: with expression 3450:154 Constant: 3460:154 6 (const int) 3470:? Sequence 3480:155 Constant: 3490:155 4 (const int) 3500:157 'nestedZ' ( temp float) 3510:? Linker Objects 3520:? 'c' ( uniform mediump int) 3530:? 'd' ( uniform mediump int) 3540:? 'x' ( smooth in highp float) 355 356 357Linked fragment stage: 358 359 360Shader version: 300 361ERROR: node is still EOpNull! 3620:6 Function Definition: main( ( global void) 3630:6 Function Parameters: 3640:? Sequence 3650:11 'f' ( temp highp float) 3660:14 'a' ( temp 2-element array of mediump int) 3670:17 'c' ( uniform mediump int) 3680:21 switch 3690:21 condition 3700:21 'c' ( uniform mediump int) 3710:21 body 3720:21 Sequence 3730:23 case: with expression 3740:23 Constant: 3750:23 2 (const int) 3760:21 Sequence 3770:21 Branch: Break 3780:26 switch 3790:26 condition 3800:26 'c' ( uniform mediump int) 3810:26 body 3820:26 Sequence 3830:28 Sequence 3840:28 move second child to first child ( temp highp float) 3850:28 'f' ( temp highp float) 3860:28 sine ( global highp float) 3870:28 'x' ( smooth in highp float) 3880:29 case: with expression 3890:29 Constant: 3900:29 2 (const int) 3910:? Sequence 3920:30 move second child to first child ( temp highp float) 3930:30 'f' ( temp highp float) 3940:30 cosine ( global highp float) 3950:30 'x' ( smooth in highp float) 3960:31 Branch: Break 3970:34 switch 3980:34 condition 3990:34 'c' ( uniform mediump int) 4000:34 body 4010:34 Sequence 4020:35 default: 4030:? Sequence 4040:36 Branch: Break 4050:37 case: with expression 4060:37 Constant: 4070:37 1 (const int) 4080:? Sequence 4090:38 move second child to first child ( temp highp float) 4100:38 'f' ( temp highp float) 4110:38 sine ( global highp float) 4120:38 'x' ( smooth in highp float) 4130:39 Branch: Break 4140:40 case: with expression 4150:40 Constant: 4160:40 2 (const int) 4170:? Sequence 4180:41 move second child to first child ( temp highp float) 4190:41 'f' ( temp highp float) 4200:41 cosine ( global highp float) 4210:41 'x' ( smooth in highp float) 4220:42 Branch: Break 4230:43 default: 4240:? Sequence 4250:44 move second child to first child ( temp highp float) 4260:44 'f' ( temp highp float) 4270:44 tangent ( global highp float) 4280:44 'x' ( smooth in highp float) 4290:47 switch 4300:47 condition 4310:47 'c' ( uniform mediump int) 4320:47 body 4330:47 Sequence 4340:48 case: with expression 4350:48 Constant: 4360:48 1 (const int) 4370:? Sequence 4380:49 move second child to first child ( temp highp float) 4390:49 'f' ( temp highp float) 4400:49 sine ( global highp float) 4410:49 'x' ( smooth in highp float) 4420:50 Branch: Break 4430:51 case: with expression 4440:51 Constant: 4450:51 2 (const int) 4460:? Sequence 4470:52 switch 4480:52 condition 4490:52 'd' ( uniform mediump int) 4500:52 body 4510:52 Sequence 4520:53 case: with expression 4530:53 Constant: 4540:53 1 (const int) 4550:? Sequence 4560:54 move second child to first child ( temp highp float) 4570:54 'f' ( temp highp float) 4580:54 component-wise multiply ( temp highp float) 4590:54 component-wise multiply ( temp highp float) 4600:54 'x' ( smooth in highp float) 4610:54 'x' ( smooth in highp float) 4620:54 'x' ( smooth in highp float) 4630:55 Branch: Break 4640:56 case: with expression 4650:56 Constant: 4660:56 2 (const int) 4670:? Sequence 4680:57 move second child to first child ( temp highp float) 4690:57 'f' ( temp highp float) 4700:57 component-wise multiply ( temp highp float) 4710:57 'x' ( smooth in highp float) 4720:57 'x' ( smooth in highp float) 4730:58 Branch: Break 4740:60 Branch: Break 4750:61 default: 4760:? Sequence 4770:62 move second child to first child ( temp highp float) 4780:62 'f' ( temp highp float) 4790:62 tangent ( global highp float) 4800:62 'x' ( smooth in highp float) 4810:63 case: with expression 4820:63 Constant: 4830:63 1 (const int) 4840:? Sequence 4850:64 Branch: Break 4860:65 case: with expression 4870:65 Constant: 4880:65 3.800000 4890:? Sequence 4900:66 Branch: Break 4910:67 case: with expression 4920:67 'c' ( uniform mediump int) 4930:? Sequence 4940:68 Branch: Break 4950:71 switch 4960:71 condition 4970:71 'c' ( uniform mediump int) 4980:71 body 4990:71 Sequence 5000:72 case: with expression 5010:72 Constant: 5020:72 1 (const int) 5030:? Sequence 5040:73 move second child to first child ( temp highp float) 5050:73 'f' ( temp highp float) 5060:73 sine ( global highp float) 5070:73 'x' ( smooth in highp float) 5080:74 Branch: Break 5090:75 case: with expression 5100:75 Constant: 5110:75 2 (const int) 5120:? Sequence 5130:76 switch 5140:76 condition 5150:76 'd' ( uniform mediump int) 5160:76 body 5170:76 Sequence 5180:77 case: with expression 5190:77 Constant: 5200:77 1 (const int) 5210:? Sequence 5220:78 move second child to first child ( temp highp float) 5230:78 'f' ( temp highp float) 5240:78 component-wise multiply ( temp highp float) 5250:78 component-wise multiply ( temp highp float) 5260:78 'x' ( smooth in highp float) 5270:78 'x' ( smooth in highp float) 5280:78 'x' ( smooth in highp float) 5290:79 Branch: Break 5300:80 case: with expression 5310:80 Constant: 5320:80 2 (const int) 5330:? Sequence 5340:81 move second child to first child ( temp highp float) 5350:81 'f' ( temp highp float) 5360:81 component-wise multiply ( temp highp float) 5370:81 'x' ( smooth in highp float) 5380:81 'x' ( smooth in highp float) 5390:82 Branch: Break 5400:84 Branch: Break 5410:85 default: 5420:? Sequence 5430:86 move second child to first child ( temp highp float) 5440:86 'f' ( temp highp float) 5450:86 tangent ( global highp float) 5460:86 'x' ( smooth in highp float) 5470:89 Branch: Break 5480:91 switch 5490:91 condition 5500:91 'c' ( uniform mediump int) 5510:91 body 5520:91 Sequence 5530:92 case: with expression 5540:92 Constant: 5550:92 1 (const int) 5560:? Sequence 5570:93 move second child to first child ( temp highp float) 5580:93 'f' ( temp highp float) 5590:93 sine ( global highp float) 5600:93 'x' ( smooth in highp float) 5610:94 Branch: Break 5620:95 case: with expression 5630:95 Constant: 5640:95 2 (const int) 5650:? Sequence 5660:96 switch 5670:96 condition 5680:96 'd' ( uniform mediump int) 5690:96 body 5700:96 Sequence 5710:97 case: with expression 5720:97 Constant: 5730:97 1 (const int) 5740:? Sequence 5750:? Sequence 5760:100 Branch: Break 5770:102 move second child to first child ( temp highp float) 5780:102 'f' ( temp highp float) 5790:102 component-wise multiply ( temp highp float) 5800:102 component-wise multiply ( temp highp float) 5810:102 'x' ( smooth in highp float) 5820:102 'x' ( smooth in highp float) 5830:102 'x' ( smooth in highp float) 5840:103 Test condition and select ( temp void) 5850:103 Condition 5860:103 Compare Less Than ( temp bool) 5870:103 'c' ( uniform mediump int) 5880:103 'd' ( uniform mediump int) 5890:103 true case 5900:? Sequence 5910:105 move second child to first child ( temp highp float) 5920:105 'f' ( temp highp float) 5930:105 component-wise multiply ( temp highp float) 5940:105 'x' ( smooth in highp float) 5950:105 'x' ( smooth in highp float) 5960:107 Test condition and select ( temp void) 5970:107 Condition 5980:107 Compare Less Than ( temp bool) 5990:107 'd' ( uniform mediump int) 6000:107 'c' ( uniform mediump int) 6010:107 true case is null 6020:109 Branch: Break 6030:111 Branch: Break 6040:112 case: with expression 6050:112 Constant: 6060:112 4 (const int) 6070:? Sequence 6080:113 move second child to first child ( temp highp float) 6090:113 'f' ( temp highp float) 6100:113 tangent ( global highp float) 6110:113 'x' ( smooth in highp float) 6120:114 Test condition and select ( temp void) 6130:114 Condition 6140:114 Compare Less Than ( temp bool) 6150:114 'f' ( temp highp float) 6160:114 Constant: 6170:114 0.000000 6180:114 true case is null 6190:116 Branch: Break 6200:122 switch 6210:122 condition 6220:122 Constant: 6230:122 0 (const int) 6240:122 body 6250:122 Sequence 6260:123 default: 6270:? Sequence 6280:124 Sequence 6290:124 move second child to first child ( temp mediump int) 6300:124 'onlyInSwitch' ( temp mediump int) 6310:124 Constant: 6320:124 0 (const int) 6330:126 'onlyInSwitch' ( temp float) 6340:128 switch 6350:128 condition 6360:128 Constant: 6370:128 0 (const int) 6380:128 body 6390:128 Sequence 6400:129 default: 6410:128 Sequence 6420:128 Branch: Break 6430:133 switch 6440:133 condition 6450:133 'c' ( uniform mediump int) 6460:133 body 6470:133 Sequence 6480:134 case: with expression 6490:134 Constant: 6500:134 1 (const int) 6510:? Sequence 6520:? Sequence 6530:137 Branch: Break 6540:139 case: with expression 6550:139 Constant: 6560:139 2 (const int) 6570:? Sequence 6580:140 'nestedX' ( temp float) 6590:143 Branch: Break 6600:144 case: with expression 6610:144 Constant: 6620:144 3 (const int) 6630:? Sequence 6640:146 Branch: Break 6650:147 Branch: Break 6660:148 case: with expression 6670:148 Constant: 6680:148 4 (const int) 6690:? Sequence 6700:149 Sequence 6710:149 move second child to first child ( temp mediump int) 6720:149 'linearY' ( temp mediump int) 6730:149 'linearZ' ( temp mediump int) 6740:150 Branch: Break 6750:151 case: with expression 6760:151 Constant: 6770:151 5 (const int) 6780:? Sequence 6790:153 Branch: Break 6800:154 case: with expression 6810:154 Constant: 6820:154 6 (const int) 6830:? Sequence 6840:155 Constant: 6850:155 4 (const int) 6860:157 'nestedZ' ( temp float) 6870:? Linker Objects 6880:? 'c' ( uniform mediump int) 6890:? 'd' ( uniform mediump int) 6900:? 'x' ( smooth in highp float) 691 692