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