John Kessenich | 7e997e2 | 2017-03-30 22:09:30 -0600 | [diff] [blame] | 1 | float condf;
|
| 2 | int condi;
|
| 3 | float1 condf1;
|
| 4 | int1 condi1;
|
| 5 |
|
| 6 | float4 main() : SV_Target0
|
| 7 | {
|
| 8 | float4 a = float4(2.0, 2.0, 2.0, 2.0);
|
| 9 | if (condi)
|
| 10 | return a + 1.0;
|
| 11 | if (condf)
|
| 12 | return a + 2.0;
|
| 13 | if (condf1)
|
| 14 | return a + 3.0;
|
| 15 | if (condi1)
|
| 16 | return a + 4.0;
|
| 17 | if (condi && condf || condf1)
|
| 18 | return a + 5.0;
|
| 19 |
|
| 20 | float f = condf;
|
| 21 | while (f) { --f; }
|
| 22 |
|
| 23 | int i = condi;
|
| 24 | do { --i; } while (i);
|
| 25 |
|
| 26 | for (; i; ) { --i; }
|
| 27 |
|
| 28 | float g = condf ? 7.0 : 8.0;
|
| 29 | a += g;
|
| 30 |
|
| 31 | return a - 1.0;
|
| 32 | } |