ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / glsl-1.50 / compiler / ext_texture_array.geom
blob1e1b92d7d4a6a986d59c356ef60b40eb09b8bb99
1 /* [config]
2  * expect_result: pass
3  * glsl_version: 1.50
4  * require_extensions: GL_EXT_texture_array
5  * [end config]
6  *
7  * Verify that GL_EXT_texture_array can be used in geometry shaders
8  */
9 #version 150
10 #extension GL_EXT_texture_array: require
12 uniform sampler1DArray s1;
13 uniform sampler2DArray s2;
14 uniform sampler1DArrayShadow s1s;
15 uniform sampler2DArrayShadow s2s;
17 void main()
19   vec4 foo = texture1DArray(s1, vec2(0.0));
20   foo += texture1DArrayLod(s1, vec2(0.0), 0.0);
21   foo += texture2DArray(s2, vec3(0.0));
22   foo += texture2DArrayLod(s2, vec3(0.0), 0.0);
23   foo += shadow1DArray(s1s, vec3(0.0));
24   foo += shadow1DArrayLod(s1s, vec3(0.0), 0.0);
25   foo += shadow2DArray(s2s, vec4(0.0));
26   gl_Position = foo;
27   EmitVertex();