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