perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / arb_gpu_shader5 / compiler / builtin-functions / fs-gatherOffset-comp-uint-samplers.frag
blobdaceb3a722018a866050b57fbe85c91379fa80be
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.50
4 // require_extensions: GL_ARB_gpu_shader5
5 // [end config]
7 #version 150
8 #extension GL_ARB_gpu_shader5: require
10 uniform usampler2D s2D;
11 uniform usampler2DArray s2DArray;
12 uniform usampler2DRect s2DRect;
14 const ivec2 offset = ivec2(-8, 7);
16 void main()
18         uvec4 res = uvec4(0);
20         res += textureGatherOffset(s2D,         vec2(0), offset, 0);
21         res += textureGatherOffset(s2DArray,    vec3(0), offset, 1);
22         res += textureGatherOffset(s2DRect,     vec2(0), offset, 2);
24         gl_FragColor = vec4(res);