1#version 450 2 3#define IN_SHADER 4 5layout(location=0) out vec4 color; 6 7void main() 8{ 9#if FOO==200 10 color = vec4(1.0); 11#else 12 #error expected FOO 200 13#endif 14 15#ifdef IN_SHADER 16 color++; 17#else 18 #error IN_SHADER was undef 19#endif 20 21#ifdef UNDEFED 22 #error UNDEFED defined 23#else 24 color *= 3.0; 25#endif 26 27#if MUL == 400 28 color *= MUL; 29#else 30 #error bad MUL 31#endif 32} 33