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
/
ifndef.shader_test
blob
12912f4a308d62dc7b5a062a2a5153f43a932c92
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
#ifndef 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) (1.0, 0.0, 0.0, 0.0)