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
ovr_multiview: add some basic glsl tests
[piglit.git]
/
tests
/
spec
/
glsl-1.50
/
linker
/
uniform-block-array-instance-name-mismatch.shader_test
blob
b7066a4218059fcc4d35739772c7c378d6fe9644
1
// Instance names for uniforms can differ. Check
2
// that the shaders link successfully.
3
4
[require]
5
GLSL >= 1.50
6
7
[vertex shader]
8
uniform Foo {
9
vec4 x;
10
} foo[3];
11
12
void main()
13
{
14
gl_Position = vec4(foo[0].x);
15
}
16
17
[fragment shader]
18
uniform Foo {
19
vec4 x;
20
} bar[3];
21
22
void main()
23
{
24
gl_FragColor = bar[0].x;
25
}
26
27
[test]
28
link success