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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
global-vars-and-initializers-expression.shader_test
blob
a324503c0af82baa70c41263c2765aedf9c3c075
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
vec4 c1 = vec4(0.4, 0.5, 0.25, 0.0);
6
vec4 c2 = vec4(0.3, 0.5, 0.5, 0.4);
7
vec4 c3 = c1 + c2;
8
void main()
9
{
10
gl_FragColor = c3;
11
}
12
13
14
[test]
15
draw rect -1 -1 2 2
16
relative probe rgba (0.5, 0.5) (0.7, 1.0, 0.75, 0.4)