Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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                                            │
       ├──────────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ 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                     │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ textureLodOffset         │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       ├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ textureLodOffset         │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (gsampler2DRect{Shadow}) │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ textureLodOffset         │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (gsamplerCubeArray)      │      │      │      │      │      │      │      │      │      │      │      │      │
       └──────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also