projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2913 from greg-lunarg/i2905
[platform/upstream/glslang.git]
/
Test
/
glsl.-D-U.frag
1
#version 450
2
3
#define IN_SHADER
4
5
layout(location=0) out vec4 color;
6
7
void 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
}