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

textureLodOffset - perform a texture lookup with explicit level-of-detail and offset

Declaration

gvec4textureLodOffset(gsampler1Dsampler,floatP,floatlod,intoffset);gvec4textureLodOffset(gsampler2Dsampler,vec2P,floatlod,ivec2offset);gvec4textureLodOffset(gsampler3Dsampler,vec3P,floatlod,ivec3offset);floattextureLodOffset(sampler1DShadowsampler,vec3P,floatlod,intoffset);floattextureLodOffset(sampler2DShadowsampler,vec4P,floatlod,ivec2offset);gvec4textureLodOffset(gsampler1DArraysampler,vec2P,floatlod,intoffset);gvec4textureLodOffset(gsampler2DArraysampler,vec3P,floatlod,ivec2offset);floattextureLodOffset(sampler1DArrayShadowsampler,vec3P,floatlod,intoffset);

Description

textureLodOffset performs a texture lookup at coordinate P from the texture bound to sampler with an
       explicit level-of-detail as specified in lod. Behavior is the same as in textureLod() except that before
       sampling, offset is added to P.

Name

       textureLodOffset - perform a texture lookup with explicit level-of-detail 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 the texture will be sampled.

       lod
           Specifies the explicit level-of-detail from which texels will be fetched.

       offset
           Specifies the offset that will be applied to P before texels are fetched.

See Also

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

See Also