ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_texture_query_levels / compiler / builtin-functions-int-samplers.frag
blob56c29e4c284c1989f47d010cfbf84c538b76a5e1
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 isampler1D s1D;
12 uniform isampler2D s2D;
13 uniform isampler3D s3D;
14 uniform isamplerCube sCube;
15 uniform isampler1DArray s1DArray;
16 uniform isampler2DArray s2DArray;
17 uniform isamplerCubeArray 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_FragColor = vec4(result);