TEXELFETCH(3G)

    .SH "NAME" texelFetch - perform a lookup of a single texel within a texture
    .SH "DECLARATION"

            .HP u gvec4 texelFetch(gsampler1D sampler, int P, int lod);
            .HP u gvec4 texelFetch(gsampler2D sampler, ivec2 P, int lod);
            .HP u gvec4 texelFetch(gsampler3D sampler, ivec3 P, int lod);
            .HP u gvec4 texelFetch(gsampler2DRect sampler, ivec2 P);
            .HP u gvec4 texelFetch(gsampler1DArray sampler, ivec2 P, int lod);
            .HP u gvec4 texelFetch(gsampler2DArray sampler, ivec3 P, int lod);
            .HP u gvec4 texelFetch(gsamplerBuffer sampler, int P);
            .HP u gvec4 texelFetch(gsampler2DMS sampler, ivec2 P, int sample);
            .HP u gvec4 texelFetch(gsampler2DMSArray sampler, ivec3 P, int sample);

    .SH "PARAMETERS"

        .PP sampler

                    Specifies the sampler to which the texture from which texels will be retrieved is bound.

            .RE
            .PP P

                        Specifies the texture coordinates at which texture will be sampled.

                .RE
                .PP lod

                            If present, specifies the level-of-detail within the texture from which the texel will be fetched.

                    .RE
                    .PP sample

                                For multisampled fetches, specifies which sample within the texel from which will be returned.

                        .RE

                    .SH "DESCRIPTION"
                        .PP texelFetch performs a lookup of a single texel from texture coordinate P in the texture bound to sampler. The array layer is specified in the last component of P for array forms. The lod parameter (if present) specifies the level-of-detail from which the texel will be fetched. The sample specifies which sample within the texel will be returned when reading from a multi-sample texure.

                    .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 l c c c c c c c c c c c c l c c c c c c c c c c c c. T{ texelFetch 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} T{ texelFetch (gsampler2DRect, gsamplerBuffer) 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} T{ texelFetch (gsampler2DMS, gsampler2DMSArray) 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(), texture(), textureGather(), textureGatherOffset(), textureGatherOffsets(), textureGrad(), textureGradOffset(), textureLod(), textureLodOffset(), textureOffset(), textureProj(), textureProjGrad(), textureProjGradOffset(), textureProjLod(), textureProjLodOffset(), textureProjOffset(), textureQueryLod(), 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