logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

textureGatherOffsets - gathers four texels from a texture with an array of offsets

Declaration

gvec4textureGatherOffsets(gsampler2Dsampler,vec2P,ivec2offsets[4],[intcomp]);gvec4textureGatherOffsets(gsampler2DArraysampler,vec3P,ivec2offsets[4],[intcomp]);gvec4textureGatherOffsets(gsampler2DRectsampler,vec3P,ivec2offsets[4],[intcomp]);vec4textureGatherOffsets(gsampler2DShadowsampler,vec2P,floatrefZ,ivec2offsets[4]);vec4textureGatherOffsets(gsampler2DArrayShadowsampler,vec3P,floatrefZ,ivec2offsets[4]);vec4textureGatherOffsets(gsampler2DRectShadowsampler,vec3P,floatrefZ,ivec2offsets[4]);

Description

textureGatherOffsets operates identically to textureGatherOffset(), except that offsets is used to
       determine the location of the four texels to sample. Each of the four texels is obtained by applying the
       offset in offsets as a (u, v) coordinate offset to P, identifying the four-texel GL_LINEAR footprint, and
       then selecting the texel i0i0 of that footprint. The specified values in offsets must be set with
       constant integral expressions.

Name

       textureGatherOffsets - gathers four texels from a texture with an array of offsets

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.

       comp
           Specifies the component of the source texture that will be used to generate the resulting vector.

       refZ
           Specifies the reference Z value used in the comparison for shadow forms.

       offsets
           Specifies an array of offsets from the specified texture coordinate P from which the texels will be
           gathered.

See Also

texelFetch(), texelFetchOffset(), texture(), textureGather(), textureGatherOffset(), textureGrad(),
       textureGradOffset(), textureLod(), textureLodOffset(), textureOffset(), textureProj(), textureProjGrad(),
       textureProjGradOffset(), textureProjLod(), textureProjLodOffset(), textureProjOffset(),
       textureQueryLod(), textureSize()

Version Support

       ┌──────────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                      │        OpenGLShadingLanguageVersion                                            │
       ├──────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name                 │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ textureGatherOffsets │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └──────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also