ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_texture_query_levels / compiler / builtin-functions-uint-samplers.vert
blob9a829363782e5415dbdcbc7bf537ca952beb36bf
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.30
4 // require_extensions: GL_ARB_texture_query_levels GL_ARB_texture_cube_map_array
5 // [end config]
7 #version 130
8 #extension GL_ARB_texture_query_levels: require
9 #extension GL_ARB_texture_cube_map_array: require
11 uniform usampler1D s1D;
12 uniform usampler2D s2D;
13 uniform usampler3D s3D;
14 uniform usamplerCube sCube;
15 uniform usampler1DArray s1DArray;
16 uniform usampler2DArray s2DArray;
17 uniform usamplerCubeArray sCubeArray;
19 void main()
21     int result = 0;
23     result += textureQueryLevels(s1D);
24     result += textureQueryLevels(s2D);
25     result += textureQueryLevels(s3D);
26     result += textureQueryLevels(sCube);
27     result += textureQueryLevels(s1DArray);
28     result += textureQueryLevels(s2DArray);
29     result += textureQueryLevels(sCubeArray);
31     gl_Position = vec4(result);