2019-10-21 18:50:31 +00:00
|
|
|
void f0() {
|
2016-06-05 21:44:07 +00:00
|
|
|
[unroll] do {} while (false);
|
2019-10-21 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void f1() {
|
2016-06-05 21:44:07 +00:00
|
|
|
[unroll] do {;} while (false);
|
2019-10-21 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
float f2(float input) {
|
2017-04-20 17:08:24 +00:00
|
|
|
do { return (float4)input; } while (input > 2.0);
|
2019-10-21 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void f3(float input) {
|
2017-04-20 17:08:24 +00:00
|
|
|
do ++input; while (input < 10.0);
|
2019-10-21 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void f4(float input) {
|
2017-04-20 17:08:24 +00:00
|
|
|
do while (++input < 10.0); while (++input < 10.0); // nest while inside do-while
|
2019-10-21 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
float4 PixelShaderFunction(float input) : COLOR0
|
|
|
|
{
|
|
|
|
f0();
|
|
|
|
f1();
|
|
|
|
f2(input);
|
|
|
|
f3(input);
|
|
|
|
f4(input);
|
2017-04-20 17:08:24 +00:00
|
|
|
return (float4)input;
|
2016-06-05 21:44:07 +00:00
|
|
|
}
|