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

textureLod - perform a texture lookup with explicit level-of-detail

Declaration

gvec4textureLod(gsampler1Dsampler,floatP,floatlod);gvec4textureLod(gsampler2Dsampler,vec2P,floatlod);gvec4textureLod(gsampler3Dsampler,vec3P,floatlod);gvec4textureLod(gsamplerCubesampler,vec3P,floatlod);floattextureLod(sampler1DShadowsampler,vec3P,floatlod);floattextureLod(sampler2DShadowsampler,vec4P,floatlod);gvec4textureLod(gsampler1DArraysampler,vec2P,floatlod);gvec4textureLod(gsampler2DArraysampler,vec3P,floatlod);floattextureLod(sampler1DArrayShadowsampler,vec3P,floatlod);gvec4textureLod(gsamplerCubeArraysampler,vec4P,floatlod);

Description

textureLod performs a texture lookup at coordinate P from the texture bound to sampler with an explicit
       level-of-detail as specified in lod.  lod specifies λbase and sets the partial derivatives as follows:

       δ u δ x = 0 , δ v δ x = 0 , δ w δ x = 0 δ u δ y = 0 , δ v δ y = 0 , δ w δ y = 0

Name

       textureLod - perform a texture lookup with explicit level-of-detail

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.

       lod
           Specifies the explicit level-of-detail

See Also

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

See Also