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