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
/
matrix-vector-multiply-rhs.shader_test
blob
ab75cb79f85a416dd8eaa777f8d5abbea2e925dc
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
void main()
6
{
7
mat4 m = mat4(
8
1.0, 0.5, 0.6, 0.0, // col 0
9
0.0, 1.0, 0.0, 0.7, // col 1
10
0.0, 0.0, 1.0, 0.8, // col 2
11
0.1, 0.2, 0.3, 1.0 // col 3
12
);
13
vec4 color = m * gl_Color;
14
gl_FragColor = color;
15
}
16
17
18
[test]
19
color 0.25 0.75 0.5 0.25
20
draw rect -1 -1 2 2
21
relative probe rgba (0.5, 0.5) (0.2745, 0.9255, 0.7294, 1.0)