arb_program_interface_query: set vs_input2[1][0] as valid name
[piglit.git] / tests / spec / arb_gpu_shader5 / compiler / builtin-functions / vs-gather-shadow-samplers.vert
blobd37b16c40ebe68fb200b33fd5249e350bcbffd9e
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.50
4 // require_extensions: GL_ARB_gpu_shader5 GL_ARB_texture_cube_map_array
5 // [end config]
7 #version 150
8 #extension GL_ARB_gpu_shader5: require
9 #extension GL_ARB_texture_cube_map_array: require
11 uniform sampler2DShadow s2D;
12 uniform sampler2DArrayShadow s2DArray;
13 uniform samplerCubeShadow sCube;
14 uniform samplerCubeArrayShadow sCubeArray;
15 uniform sampler2DRectShadow s2DRect;
17 void main()
19         vec4 res = vec4(0);
21         float refz = 0.5;
23         res += textureGather(s2D,               vec2(0), refz);
24         res += textureGather(s2DArray,          vec3(0), refz);
25         res += textureGather(sCube,             vec3(0), refz);
26         res += textureGather(sCubeArray,        vec4(0), refz);
27         res += textureGather(s2DRect,           vec2(0), refz);
29         gl_Position = res;