mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-12 13:26:12 +00:00
0576126005
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21131 e7fa87d3-cd2b-0410-9028-fcbf551c1848
65 lines
839 B
JavaScript
65 lines
839 B
JavaScript
#version 300 es
|
|
|
|
uniform int c, d;
|
|
in float x;
|
|
|
|
void main()
|
|
{
|
|
float f;
|
|
int a[2];
|
|
|
|
switch(f) { // ERROR
|
|
}
|
|
|
|
switch(a) { // ERROR
|
|
}
|
|
|
|
switch(c)
|
|
{
|
|
}
|
|
|
|
switch(c)
|
|
{
|
|
case 2: // ERROR, not enough stuff
|
|
}
|
|
|
|
switch(c)
|
|
{
|
|
f = sin(x); // ERRROR
|
|
case 2: // ERROR, not enough stuff
|
|
f = cos(x);
|
|
break;
|
|
}
|
|
|
|
switch (c) {
|
|
case 1:
|
|
f = sin(x);
|
|
break;
|
|
case 2:
|
|
f = cos(x);
|
|
break;
|
|
default:
|
|
f = tan(x);
|
|
}
|
|
|
|
switch (c) {
|
|
case 1:
|
|
f = sin(x);
|
|
break;
|
|
case 2:
|
|
switch (d) {
|
|
case 1:
|
|
f = x * x * x;
|
|
break;
|
|
case 2:
|
|
f = x * x;
|
|
break;
|
|
}
|
|
break;
|
|
default:
|
|
f = tan(x);
|
|
}
|
|
|
|
break; // ERROR
|
|
}
|