Name

textureQueryLevels — compute the number of accessible mipmap levels of a texture

Declaration

vec2 textureQueryLevels(gsampler1D  sampler);
vec2 textureQueryLevels(gsampler2D  sampler);
vec2 textureQueryLevels(gsampler3D  sampler);
vec2 textureQueryLevels(gsamplerCube  sampler);
vec2 textureQueryLevels(gsampler1DArray  sampler);
vec2 textureQueryLevels(gsampler2DDArray  sampler);
vec2 textureQueryLevels(gsamplerCubeArray  sampler);
vec2 textureQueryLevels(gsampler1DShadow  sampler);
vec2 textureQueryLevels(gsampler2DShadow  sampler);
vec2 textureQueryLevels(gsamplerCubeShadow  sampler);
vec2 textureQueryLevels(gsampler1DArrayShadow  sampler);
vec2 textureQueryLevels(gsampler2DArrayShadow  sampler);
vec2 textureQueryLevels(gsamplerCubeArrayShadow  sampler);

Parameters

sampler

Specifies the sampler to which the texture whose mipmap level count will be queried is bound.

Description

textureQueryLevels returns the number of accessible mipmap levels are in the texture associated with sampler.

If called on an incomplete texture, or if no texture is associated with sampler, zero is returned.

Version Support

FunctionVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
textureQueryLevels---------Y

See Also

texelFetch, texelFetchOffset, texture, textureGather, textureGatherOffset, textureGatherOffsets, textureGrad, textureGradOffset, textureLod, textureLodOffset, textureOffset, textureProj, textureProjGrad, textureProjGradOffset, textureProjLod, textureProjLodOffset, textureProjOffset, textureSize

Copyright

Copyright © 2012 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.