blob: 0a02222081378f31321eb837ce30a96a3567abfe [file] [log] [blame]
John Kessenicha9313662017-06-15 10:40:49 -06001
2#define IN_SHADER
3
4static float4 color;
5
6void 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}