repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
preprocessor
/
nested-if-elif.shader_test
blob
e006871c5b3bc2d9b4a083370de3e1b3f897f4ac
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
#define FOO 0
6
#define BAR 2
7
void main()
8
{
9
vec4 r = vec4(0.0, 0.0, 0.0, 0.0);
10
#if FOO == 1
11
r.z = 1.0;
12
#else
13
#if BAR == 1
14
r.x = 1.0;
15
#elif BAR == 2
16
r.x = 1.0;
17
#else
18
r.y = 1.0;
19
#endif
20
#endif
21
gl_FragColor = r;
22
}
23
24
25
[test]
26
draw rect -1 -1 2 2
27
relative probe rgba (0.5, 0.5) (1.0, 0.0, 0.0, 0.0)