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
/
multi-line-define.shader_test
blob
a4f838814ab99fd1764b05abb5057fc63a640d8b
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
#define FOO(x) \
6
((x) + (x))
7
void main()
8
{
9
gl_FragColor = vec4(FOO(0.25));
10
}
11
12
13
[test]
14
draw rect -1 -1 2 2
15
relative probe rgba (0.5, 0.5) (0.5, 0.5, 0.5, 0.5)