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
|
float4 PixelShaderFunction(float4 input, int c, int d) : COLOR0
{
switch(c)
{
}
switch(c)
{
default:
}
switch (c) {
case 1:
++input;
break;
case 2:
--input;
break;
}
[branch] switch (c) {
case 1:
++input;
break;
case 2:
switch (d) {
case 2:
input += 2.0;
break;
case 3:
input += 3.0;
break;
}
break;
default:
input += 4.0;
}
switch (c) {
case 1:
}
switch (c) {
case 1:
case 2:
case 3:
++input;
break;
case 4:
case 5:
--input;
}
return input;
}
|