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-vs-masked-cos.shader_test
blob
cc42f6eafe16ee567640d94ff0152f602aaa31a4
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
uniform vec2 arg0;
7
uniform vec3 arg1;
8
varying vec3 color;
9
10
void main()
11
{
12
gl_Position = gl_Vertex;
13
14
/* try to trigger masked mov for cos */
15
vec3 val = arg1;
16
val.z = cos(arg0.x);
17
color.x = val.z;
18
color.yz = val.xy;
19
}
20
21
[fragment shader]
22
varying vec3 color;
23
void main()
24
{
25
gl_FragColor = vec4(color, 0.0);
26
}
27
28
[test]
29
uniform vec2 arg0 0.0 0.0
30
uniform vec3 arg1 1.0 0.5 1.0
31
draw rect -1 -1 2 2
32
probe rgba 1 1 1.0 1.0 0.5 0.0
33