John Kessenich | a931366 | 2017-06-15 10:40:49 -0600 | [diff] [blame] | 1 | |
2 | #define IN_SHADER | ||||
3 | |||||
4 | static float4 color; | ||||
5 | |||||
6 | void main() | ||||
7 | { | ||||
8 | #if FOO==200 | ||||
9 | color = 1.0; | ||||
10 | #else | ||||
11 | #error expected FOO 200 | ||||
12 | #endif | ||||
13 | |||||
14 | #ifdef FOO | ||||
15 | color -= 5.0; | ||||
16 | #else | ||||
17 | #error expected FOO 200 | ||||
18 | #endif | ||||
19 | |||||
20 | #ifdef IN_SHADER | ||||
21 | color++; | ||||
22 | #else | ||||
23 | #error IN_SHADER was undef | ||||
24 | #endif | ||||
25 | |||||
26 | #ifdef UNDEFED | ||||
27 | #error UNDEFED defined | ||||
28 | #else | ||||
29 | color *= 3.0; | ||||
30 | #endif | ||||
31 | } |