bionic (3) texelFetchOffset.3G.gz

Provided by: opengl-4-man-doc_1.0~svn33624-1_all bug

NAME

       texelFetchOffset - perform a lookup of a single texel within a texture with an offset

DECLARATION

       gvec4 texelFetchOffset(gsampler1D sampler, int P, int lod, int offset);

       gvec4 texelFetchOffset(gsampler2D sampler, ivec2 P, int lod, int offset);

       gvec4 texelFetchOffset(gsampler3D sampler, ivec3 P, int lod, int offset);

       gvec4 texelFetchOffset(gsampler2DRect sampler, ivec2 P, int offset);

       gvec4 texelFetchOffset(gsampler1DArray sampler, ivec2 P, int lod, int offset);

       gvec4 texelFetchOffset(gsampler2DArray sampler, ivec3 P, int lod, int 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.

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.

VERSION SUPPORT

       ┌───────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                   │        OpenGL Shading Language Version                                            │
       ├───────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │Name               │      │      │      │      │      │      │      │      │      │      │      │      │
       ├───────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │texelFetchOffset   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       ├───────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │texelFetchOffset   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │(gsampler2DRect)   │      │      │      │      │      │      │      │      │      │      │      │      │
       ├───────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │texelFetchOffset   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │(gsampler2DMS,     │      │      │      │      │      │      │      │      │      │      │      │      │
       │gsampler2DMSArray) │      │      │      │      │      │      │      │      │      │      │      │      │
       └───────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

SEE ALSO

       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/.

       Copyright © 2011-2014 Khronos Group

[FIXME: source]                                    01/03/2018                               TEXELFETCHOFFSET(3G)