texelFetch — perform a lookup of a single texel within a texture
gvec4 texelFetch( | gsampler2D sampler, |
| ivec2 P, | |
int lod); |
gvec4 texelFetch( | gsampler3D sampler, |
| ivec3 P, | |
int lod); |
gvec4 texelFetch( | gsampler2DArray sampler, |
| ivec3 P, | |
int lod); |
samplerSpecifies the sampler to which the texture from which texels will be retrieved is bound.
PSpecifies the texture coordinates at which texture will be sampled.
lodIf present, specifies the level-of-detail within the texture from which the texel will be fetched.
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.