repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
shaders
/
glsl-fs-dot-vec2.shader_test
blob
17614b10105849cfccff72dc91ece21dada2585e
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
uniform vec4 arg0;
13
void main()
14
{
15
gl_FragColor = vec4(dot(arg0.yy, arg0.yy),
16
dot(arg0.xx, arg0.zw),
17
dot(arg0.zw, arg0.xx),
18
dot(arg0.yw, arg0.wy));
19
}
20
21
[test]
22
uniform vec4 arg0 0.25 0.5 1.0 2.0
23
draw rect -1 -1 2 2
24
probe all rgba 0.5 0.75 0.75 1.0