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
/
execution
/
nested-function-calls-same-function.shader_test
blob
d90d8ab555942e79b4665bd0eea32aa2ef9a0289
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
float Half(const in float x)
6
{
7
return 0.5 * x;
8
}
9
10
void main()
11
{
12
float a = 0.5;
13
float b = Half(Half(a));
14
gl_FragColor = vec4(b);
15
}
16
17
18
[test]
19
draw rect -1 -1 2 2
20
relative probe rgba (0.5, 0.5) (0.125, 0.125, 0.125, 0.125)