mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-30 14:40:34 +00:00
464f6d9ff1
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20457 e7fa87d3-cd2b-0410-9028-fcbf551c1848
41 lines
675 B
GLSL
41 lines
675 B
GLSL
#define ON1
|
|
#define ON2
|
|
|
|
float sum = 0.0;
|
|
|
|
void main()
|
|
{
|
|
#if defined(ON1) && (defined(OFF) || defined(ON2))
|
|
//yes
|
|
sum += 1.0;
|
|
#endif
|
|
|
|
#if !defined(ON1) || (defined(OFF) || (!defined(OFF2) && defined(ON2)))
|
|
//yes
|
|
sum += 20.0;
|
|
#endif
|
|
|
|
#if defined(ON1) && (defined(OFF) || !defined(ON2))
|
|
//no
|
|
sum += 0.1;
|
|
#endif
|
|
|
|
#if !defined(ON1) || (defined(OFF) || !defined(OFF2) && !defined(ON2))
|
|
//no
|
|
sum += 0.2;
|
|
#endif
|
|
|
|
#if !defined(ON1) || !defined(OFF) || defined(ON2) && defined(OFF2)
|
|
//yes
|
|
sum += 300.0;
|
|
#endif
|
|
|
|
#if (!defined(ON1) || !defined(OFF) || defined(ON2)) && defined(OFF2)
|
|
//no
|
|
sum += 0.4;
|
|
#endif
|
|
|
|
// sum should be 321.0
|
|
gl_Position = vec4(sum);
|
|
}
|