textureGradOffset - perform a texture lookup with explicit gradients and offset
Contents
Copyright
Copyright © 2011-2014 Khronos Group
[FIXME: source] 11/18/2024 TEXTUREGRADOFFSET(3G)
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 │
├──────────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ 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 │ │ │ │ │ │ │ │ │ │ │ │ │
├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ textureGradOffset │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ textureGradOffset │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (gsampler2DRect{Shadow}) │ │ │ │ │ │ │ │ │ │ │ │ │
└──────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘
