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
/
glsl-vs-dot-vec2.shader_test
blob
3d7ca3a8d7d7afd47f716c5acfe780409e25fcff
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
uniform vec4 arg0;
6
varying vec4 v;
7
void main()
8
{
9
gl_Position = gl_Vertex;
10
v = vec4(dot(arg0.yy, arg0.yy),
11
dot(arg0.xx, arg0.zw),
12
dot(arg0.zw, arg0.xx),
13
dot(arg0.yw, arg0.wy));
14
}
15
16
[fragment shader]
17
varying vec4 v;
18
void main()
19
{
20
gl_FragColor = v;
21
}
22
23
[test]
24
uniform vec4 arg0 0.25 0.5 1.0 2.0
25
draw rect -1 -1 2 2
26
probe all rgba 0.5 0.75 0.75 1.0