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-uniform-array-1.shader_test
blob
97bb096dbfd180651b14f96f9f5b104ab54d1536
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
uniform vec4 arg[4];
7
varying vec4 color;
8
void main()
9
{
10
gl_Position = gl_Vertex;
11
color = arg[1];
12
}
13
14
[fragment shader]
15
varying vec4 color;
16
void main()
17
{
18
gl_FragColor = color;
19
}
20
21
[test]
22
uniform vec4 arg[0] 1.0 0.0 0.0 0.0
23
uniform vec4 arg[1] 0.0 1.0 0.0 0.0
24
uniform vec4 arg[2] 0.0 0.0 1.0 0.0
25
uniform vec4 arg[3] 1.0 0.0 1.0 0.0
26
draw rect -1 -1 2 2
27
probe rgb 1 1 0.0 1.0 0.0