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
/
matrix-vector-multiply-scale.shader_test
blob
0dc3e69d9b9d1dc9721833989c1abc46a03d8ab7
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
void main()
6
{
7
mat4 m = mat4(0.5); // scale by 0.5
8
vec4 color = gl_Color * m;
9
gl_FragColor = color;
10
}
11
12
13
[test]
14
color 0.25 0.75 0.5 0.25
15
draw rect -1 -1 2 2
16
relative probe rgba (0.5, 0.5) (0.125, 0.375, 0.25, 0.125)