logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

textureGradOffset - perform a texture lookup with explicit gradients and offset

Declaration

gvec4textureGradOffset(gsampler1Dsampler,floatP,floatdPdx,floatdPdy,intoffset);gvec4textureGradOffset(gsampler2Dsampler,vec2P,vec2dPdx,vec2dPdy,ivec2offset);gvec4textureGradOffset(gsampler3Dsampler,vec3P,vec3dPdx,vec3dPdy,ivec3offset);gvec4textureGradOffset(gsampler2DRectsampler,vec2P,vec2dPdx,vec2dPdy,ivec2offset);floattextureGradOffset(gsampler2DRectShadowsampler,vec3P,vec2dPdx,vec2dPdy,ivec2offset);floattextureGradOffset(sampler1DShadowsampler,vec3P,floatdPdx,floatdPdy,intoffset);floattextureGradOffset(sampler2DShadowsampler,vec3P,vec2dPdx,vec2dPdy,ivec2offset);gvec4textureGradOffset(gsampler1DArraysampler,vec2P,floatdPdx,floatdPdy,intoffset);gvec4textureGradOffset(gsampler2DArraysampler,vec3P,vec2dPdx,vec2dPdy,ivec2offset);floattextureGradOffset(sampler1DArrayShadowsampler,vec3P,floatdPdx,floatdPdy,intoffset);floattextureGradOffset(sampler2DArrayShadowsampler,vec3P,vec2dPdx,vec2dPdy,ivec2offset);

Description

textureGradOffset performs a texture lookup at coordinate P from the texture bound to sampler with
       explicit texture coordinate gradiends as specified in dPdx and dPdy. An explicit offset is also supplied
       in offset.  textureGradOffset consumes dPdx and dPdy as textureGrad() and offset as textureOffset().

Name

       textureGradOffset - perform a texture lookup with explicit gradients and 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.

       dPdx
           Specifies the partial derivative of P with respect to window x.

       dPdy
           Specifies the partial derivative of P with respect to window y.

       offset
           Specifies the offset to be applied to the texture coordinates before sampling.

See Also

texelFetch(), texelFetchOffset(), texture(), textureGather(), textureGatherOffset(),
       textureGatherOffsets(), textureGrad(), 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                     │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ textureGradOffset        │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       ├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ textureGradOffset        │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (gsampler2DRect{Shadow}) │      │      │      │      │      │      │      │      │      │      │      │      │
       └──────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also