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
gl/frameworks: Use piglit_set_destroy_func() when gl_fw->destroy is set
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
linker
/
glsl-link-array-01.shader_test
blob
2d3465df01754950113c3f0652b8a10689a7f903
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
vec4 vals[2];
6
7
void set_position();
8
9
void main()
10
{
11
vals[1] = gl_Vertex;
12
set_position();
13
}
14
15
[vertex shader]
16
vec4 vals[];
17
18
void set_position()
19
{
20
gl_Position = vals[1];
21
}
22
23
[fragment shader]
24
void main()
25
{
26
gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);
27
}
28
29
[test]
30
draw rect -1 -1 2 2
31
probe all rgba 0.0 1.0 0.0 0.0