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-2.shader_test
blob
ba3850f8caa2a3505cee2d83fe42280f312948fd
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
#define FOO 0
6
#define BAR 0
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
#else
16
r.y = 1.0;
17
#endif
18
#endif
19
gl_FragColor = r;
20
}
21
22
23
[test]
24
draw rect -1 -1 2 2
25
relative probe rgba (0.5, 0.5) (0.0, 1.0, 0.0, 0.0)