Perform a lookup of a single texel within a texture.
||-||Specifies the sampler to which the texture from which texels will be retrieved is bound.|
||-||Specifies the texture coordinates at which texture will be sampled.|
||-||If present, specifies the level-of-detail within the texture from which the texel will be fetched.|
||-||For multisampled fetches, specifies which sample within the texel from which will be returned.|
texelFetch performs a lookup of a single texel from texture coordinate
P in the texture bound to
sampler. The array layer is specified in the last component of
P for array forms. The
lod parameter (if present) specifies the level-of-detail from which the texel will be fetched. The
sample specifies which sample within the texel will be returned when reading from a multi-sample texure.
|texelFetch (gsampler2DRect, gsamplerBuffer)||1.4+|
|texelFetch (gsampler2DMS, gsampler2DMSArray)||1.5+|
texelFetch, texture, textureGather, textureGatherOffset, textureGatherOffsets, textureGrad, textureGradOffset, textureLod, textureLodOffset, textureOffset, textureProj, textureProjGrad, textureProjGradOffset, textureProjLod, textureProjLodOffset, textureProjOffset, textureQueryLod, 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/.