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
/
ifdef.shader_test
blob
7754596b886d8ae6f24a4b8ca12ec6d347f682bc
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
#define FOO
6
void main()
7
{
8
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
9
#ifdef FOO
10
gl_FragColor.y = 1.0;
11
#else
12
gl_FragColor.x = 1.0;
13
#endif
14
}
15
16
17
[test]
18
draw rect -1 -1 2 2
19
relative probe rgba (0.5, 0.5) (0.0, 1.0, 0.0, 0.0)