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
/
glsl-fs-varying-array.shader_test
blob
aa4455881ef47199222db501f8f5ccd26bbebfee
1
[require]
2
GLSL >= 1.20
3
4
[vertex shader]
5
varying vec4 values[4];
6
void main()
7
{
8
values[0] = vec4(0.2);
9
values[1] = vec4(0.4);
10
values[2] = vec4(0.6);
11
values[3] = vec4(0.7);
12
gl_Position = gl_Vertex;
13
}
14
15
[fragment shader]
16
uniform int index;
17
varying vec4 values[4];
18
void main()
19
{
20
gl_FragColor = values[index];
21
}
22
23
[test]
24
uniform int index 1
25
draw rect -1 -1 2 2
26
probe rgba 1 1 0.4 0.4 0.4 0.4