texelFetchOffset - perform a lookup of a single texel within a texture with an offset
Contents
Copyright
Copyright © 2011-2014 Khronos Group
[FIXME: source] 11/18/2024 TEXELFETCHOFFSET(3G)
Declaration
gvec4texelFetchOffset(gsampler1Dsampler,intP,intlod,intoffset);gvec4texelFetchOffset(gsampler2Dsampler,ivec2P,intlod,intoffset);gvec4texelFetchOffset(gsampler3Dsampler,ivec3P,intlod,intoffset);gvec4texelFetchOffset(gsampler2DRectsampler,ivec2P,intoffset);gvec4texelFetchOffset(gsampler1DArraysampler,ivec2P,intlod,intoffset);gvec4texelFetchOffset(gsampler2DArraysampler,ivec3P,intlod,intoffset);
Description
texelFetchOffset performs a lookup of a single texel from texture coordinate P in the texture bound to
sampler. Before fetching the texel, the offset specified in offset is added to P. offset must be a
constant expression. 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
parameter specifies which sample within the texel will be returned when reading from a multi-sample
texure.
Name
texelFetchOffset - perform a lookup of a single texel within a texture with an offset
Parameters
sampler
Specifies the sampler to which the texture from which texels will be retrieved is bound.
P
Specifies the texture coordinates at which texture will be sampled.
lod
If present, specifies the level-of-detail within the texture from which the texel will be fetched.
offset
Specifies offset, in texels that will be applied to P before looking up the texel.
See Also
texelFetch(), texture(), textureGather(), textureGatherOffset(), textureGatherOffsets(), textureGrad(),
textureGradOffset(), textureLod(), textureLodOffset(), textureOffset(), textureProj(), textureProjGrad(),
textureProjGradOffset(), textureProjLod(), textureProjLodOffset(), textureProjOffset(),
textureQueryLod(), 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 │ │ │ │ │ │ │ │ │ │ │ │ │
├────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ texelFetchOffset │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
├────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ texelFetchOffset │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (gsampler2DRect) │ │ │ │ │ │ │ │ │ │ │ │ │
├────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ texelFetchOffset │ - │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (gsampler2DMS, │ │ │ │ │ │ │ │ │ │ │ │ │
│ gsampler2DMSArray) │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘
