Provided by: opengl-4-man-doc_1.0~svn33624-1_all bug

NAME

       textureQueryLod - compute the level-of-detail that would be used to sample from a texture

DECLARATION

       vec2 textureQueryLod(gsampler1D sampler, float P);

       vec2 textureQueryLod(gsampler2D sampler, vec2 P);

       vec2 textureQueryLod(gsampler3D sampler, vec3 P);

       vec2 textureQueryLod(gsamplerCube sampler, vec3 P);

       vec2 textureQueryLod(gsampler1DArray sampler, float P);

       vec2 textureQueryLod(gsampler2DDArray sampler, vec2 P);

       vec2 textureQueryLod(gsamplerCubeArray sampler, vec3 P);

       vec2 textureQueryLod(gsampler1DShadow sampler, float P);

       vec2 textureQueryLod(gsampler2DShadow sampler, vec2 P);

       vec2 textureQueryLod(gsamplerCubeShadow sampler, vec3 P);

       vec2 textureQueryLod(gsampler1DArrayShadow sampler, float P);

       vec2 textureQueryLod(gsampler2DArrayShadow sampler, vec2 P);

       vec2 textureQueryLod(gsamplerCubeArrayShadow sampler, vec3 P);

PARAMETERS

       sampler
           Specifies the sampler to which the texture whose level-of-detail will be queried is
           bound.

       P
           Specifies the texture coordinates at which the level-of-detail will be queried.

DESCRIPTION

       Available only in the fragment shader, textureQueryLod computes the level-of-detail that
       would be used to sample from a texture. The mipmap array(s) that would be accessed is
       returned in the x component of the return value. The computed level-of-detail relative to
       the base level is returned in the y component of the return value.

       If called on an incomplete texture, the result of the operation is undefined.

VERSION SUPPORT

       ┌────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                │        OpenGL Shading Language Version                                            │
       ├────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │Name            │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │textureQueryLod │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

SEE ALSO

       texelFetch(), texelFetchOffset(), texture(), textureGather(), textureGatherOffset(),
       textureGatherOffsets(), textureGrad(), textureGradOffset(), textureLod(),
       textureLodOffset(), textureOffset(), textureProj(), textureProjGrad(),
       textureProjGradOffset(), textureProjLod(), textureProjLodOffset(), textureProjOffset(),
       textureSize()

COPYRIGHT

       Copyright © 2011-2014 Khronos Group. This material may be distributed subject to the terms
       and conditions set forth in the Open Publication License, v 1.0, 8 June 1999.
       http://opencontent.org/openpub/.

COPYRIGHT

       Copyright © 2011-2014 Khronos Group

[FIXME: source]                             01/03/2018                        TEXTUREQUERYLOD(3G)