TEXTUREQUERYLOD(3G)

    .SH "NAME" textureQueryLod - compute the level-of-detail that would be used to sample from a texture
    .SH "DECLARATION"

            .HP u vec2 textureQueryLod(gsampler1D sampler, float P);
            .HP u vec2 textureQueryLod(gsampler2D sampler, vec2 P);
            .HP u vec2 textureQueryLod(gsampler3D sampler, vec3 P);
            .HP u vec2 textureQueryLod(gsamplerCube sampler, vec3 P);
            .HP u vec2 textureQueryLod(gsampler1DArray sampler, float P);
            .HP u vec2 textureQueryLod(gsampler2DArray sampler, vec2 P);
            .HP u vec2 textureQueryLod(gsamplerCubeArray sampler, vec3 P);
            .HP u vec2 textureQueryLod(sampler1DShadow sampler, float P);
            .HP u vec2 textureQueryLod(sampler2DShadow sampler, vec2 P);
            .HP u vec2 textureQueryLod(samplerCubeShadow sampler, vec3 P);
            .HP u vec2 textureQueryLod(sampler1DArrayShadow sampler, float P);
            .HP u vec2 textureQueryLod(sampler2DArrayShadow sampler, vec2 P);
            .HP u vec2 textureQueryLod(samplerCubeArrayShadow sampler, vec3 P);

    .SH "PARAMETERS"

        .PP sampler

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

            .RE
            .PP P

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

                .RE

            .SH "DESCRIPTION"
                .PP 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.
                .PP If called on an incomplete texture, the result of the operation is undefined.

            .SH "VERSION SUPPORT"
                .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ OpenGL Shading Language Version T} T{ Function Name T}:T{ 1.10 T}:T{ 1.20 T}:T{ 1.30 T}:T{ 1.40 T}:T{ 1.50 T}:T{ 3.30 T}:T{ 4.00 T}:T{ 4.10 T}:T{ 4.20 T}:T{ 4.30 T}:T{ 4.40 T}:T{ 4.50 T} l c c c c c c c c c c c c. T{ textureQueryLod T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}

            .SH "SEE ALSO"
                .PP texelFetch(), texelFetchOffset(), texture(), textureGather(), textureGatherOffset(), textureGatherOffsets(), textureGrad(), textureGradOffset(), textureLod(), textureLodOffset(), textureOffset(), textureProj(), textureProjGrad(), textureProjGradOffset(), textureProjLod(), textureProjLodOffset(), textureProjOffset(), textureSize()

            .SH "COPYRIGHT"
                .PP 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. https://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2011-2014 Khronos Group