textureQueryLevels - compute the number of accessible mipmap levels of a texture
Contents
Copyright
Copyright © 2012-2014 Khronos Group
[FIXME: source] 11/18/2024 TEXTUREQUERYLEVELS(3G)
Declaration
inttextureQueryLevels(gsampler1Dsampler);inttextureQueryLevels(gsampler2Dsampler);inttextureQueryLevels(gsampler3Dsampler);inttextureQueryLevels(gsamplerCubesampler);inttextureQueryLevels(gsampler1DArraysampler);inttextureQueryLevels(gsampler2DDArraysampler);inttextureQueryLevels(gsamplerCubeArraysampler);inttextureQueryLevels(gsampler1DShadowsampler);inttextureQueryLevels(gsampler2DShadowsampler);inttextureQueryLevels(gsamplerCubeShadowsampler);inttextureQueryLevels(gsampler1DArrayShadowsampler);inttextureQueryLevels(gsampler2DArrayShadowsampler);inttextureQueryLevels(gsamplerCubeArrayShadowsampler);
Description
textureQueryLevels returns the number of accessible mipmap levels in the texture associated with sampler.
If called on an incomplete texture, or if no texture is associated with sampler, zero is returned.
Name
textureQueryLevels - compute the number of accessible mipmap levels of a texture
Parameters
sampler
Specifies the sampler to which the texture whose mipmap level count will be queried is bound.
See Also
texelFetch(), texelFetchOffset(), texture(), textureGather(), textureGatherOffset(),
textureGatherOffsets(), textureGrad(), textureGradOffset(), textureLod(), textureLodOffset(),
textureOffset(), textureProj(), textureProjGrad(), textureProjGradOffset(), textureProjLod(),
textureProjLodOffset(), textureProjOffset(), textureSize()
Version Support
┌────────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
│ │ OpenGLShadingLanguageVersion │
├────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ Function │ 1.10 │ 1.20 │ 1.30 │ 1.40 │ 1.50 │ 3.30 │ 4.00 │ 4.10 │ 4.20 │ 4.30 │ 4.40 │ 4.50 │
│ Name │ │ │ │ │ │ │ │ │ │ │ │ │
├────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ textureQueryLevels │ - │ - │ - │ - │ - │ - │ - │ - │ - │ ✔ │ ✔ │ ✔ │
└────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘
