arb_program_interface_query: set vs_input2[1][0] as valid name
[piglit.git] / tests / spec / arb_gpu_shader5 / compiler / builtin-functions / fs-gather-comp-float-samplers.frag
blob6c679f3917168960833e1115324596ac3eaf3705
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 sampler2D s2D;
12 uniform sampler2DArray s2DArray;
13 uniform samplerCube sCube;
14 uniform samplerCubeArray sCubeArray;
15 uniform sampler2DRect s2DRect;
17 void main()
19         vec4 res = vec4(0);
21         res += textureGather(s2D,               vec2(0), 0);
22         res += textureGather(s2DArray,          vec3(0), 1);
23         res += textureGather(sCube,             vec3(0), 2);
24         res += textureGather(sCubeArray,        vec4(0), 3);
25         res += textureGather(s2DRect,           vec2(0), 0);
27         gl_FragColor = res;