4 // require_extensions: GL_ARB_texture_query_levels GL_ARB_texture_cube_map_array
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;
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);