Compute the level-of-detail that would be used to sample from a texture.
||-||Specifies the sampler to which the texture whose level-of-detail will be queried is bound.|
||-||Specifies the texture coordinates at which the level-of-detail will be queried.|
Available only in the fragment shader,
textureQueryLod computes the level-of-detail that would be used to sample from a texture. The mipmap array(s) that would be accessed is returned in thexcomponent of the return value. The computed level-of-detail relative to the base level is returned in theycomponent of the return value.
If called on an incomplete texture, the result of the operation is undefined.
texelFetch , texelFetchOffset , texture , textureGather , textureGatherOffset , textureGatherOffsets , textureGrad , textureGradOffset , textureLod , textureLodOffset , textureOffset , textureProj , textureProjGrad , textureProjGradOffset , textureProjLod , textureProjLodOffset , textureProjOffset , textureSize
Copyright© 2011-2014 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/.