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