mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-12 13:26:12 +00:00
32 lines
349 B
GLSL
32 lines
349 B
GLSL
|
|
||
|
#define IN_SHADER
|
||
|
|
||
|
static float4 color;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
#if FOO==200
|
||
|
color = 1.0;
|
||
|
#else
|
||
|
#error expected FOO 200
|
||
|
#endif
|
||
|
|
||
|
#ifdef FOO
|
||
|
color -= 5.0;
|
||
|
#else
|
||
|
#error expected FOO 200
|
||
|
#endif
|
||
|
|
||
|
#ifdef IN_SHADER
|
||
|
color++;
|
||
|
#else
|
||
|
#error IN_SHADER was undef
|
||
|
#endif
|
||
|
|
||
|
#ifdef UNDEFED
|
||
|
#error UNDEFED defined
|
||
|
#else
|
||
|
color *= 3.0;
|
||
|
#endif
|
||
|
}
|