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
glsl-1.10: move a whole bunch shader tests to the glsl-1.10 dir
[piglit.git]
/
tests
/
shaders
/
link-uniform-array-size.shader_test
blob
caebb9298ba32d3cdd80d49c34ac37216b4af905
1
[require]
2
GLSL >= 1.20
3
4
[vertex shader]
5
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
#version 120
13
uniform vec4 a[3];
14
15
void main()
16
{
17
vec4 b[3] = a;
18
19
gl_FragColor = b[2];
20
}
21
22
[test]
23
uniform vec4 a[2] 0.0 1.0 0.0 0.0
24
draw rect -1 -1 2 2
25
probe all rgba 0.0 1.0 0.0 0.0