ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_texture_query_levels / compiler / builtin-functions-float-samplers.frag
blobd6a19ba00705c4ed5bbb601e88abb3462747a4ad
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 sampler1D s1D;
12 uniform sampler2D s2D;
13 uniform sampler3D s3D;
14 uniform samplerCube sCube;
15 uniform sampler1DArray s1DArray;
16 uniform sampler2DArray s2DArray;
17 uniform samplerCubeArray sCubeArray;
19 uniform sampler1DShadow s1DShadow;
20 uniform sampler2DShadow s2DShadow;
21 uniform samplerCubeShadow sCubeShadow;
22 uniform sampler1DArrayShadow s1DArrayShadow;
23 uniform sampler2DArrayShadow s2DArrayShadow;
24 uniform samplerCubeArrayShadow sCubeArrayShadow;
26 void main()
28     int result = 0;
30     result += textureQueryLevels(s1D);
31     result += textureQueryLevels(s2D);
32     result += textureQueryLevels(s3D);
33     result += textureQueryLevels(sCube);
34     result += textureQueryLevels(s1DArray);
35     result += textureQueryLevels(s2DArray);
36     result += textureQueryLevels(sCubeArray);
38     result += textureQueryLevels(s1DShadow);
39     result += textureQueryLevels(s2DShadow);
40     result += textureQueryLevels(sCubeShadow);
41     result += textureQueryLevels(s1DArrayShadow);
42     result += textureQueryLevels(s2DArrayShadow);
43     result += textureQueryLevels(sCubeArrayShadow);
45     gl_FragColor = vec4(result);