IMAGELOAD(3G)

    .SH "NAME" imageLoad - load a single texel from an image
    .SH "DECLARATION"

            .HP u gvec4 imageLoad(gimage1D image, int P);
            .HP u gvec4 imageLoad(gimage2D image, ivec2 P);
            .HP u gvec4 imageLoad(gimage3D image, ivec3 P);
            .HP u gvec4 imageLoad(gimage2DRect image, ivec2 P);
            .HP u gvec4 imageLoad(gimageCube image, ivec3 P);
            .HP u gvec4 imageLoad(gimageBuffer image, int P);
            .HP u gvec4 imageLoad(gimage1DArray image, ivec2 P);
            .HP u gvec4 imageLoad(gimage2DArray image, ivec3 P);
            .HP u gvec4 imageLoad(gimageCubeArray image, ivec3 P);
            .HP u gvec4 imageLoad(gimage2DMS image, ivec2 P, int sample);
            .HP u gvec4 imageLoad(gimage2DMSArray image, ivec3 P, int sample);

    .SH "PARAMETERS"

        .PP image

                    Specify the image unit from which to load a texel.

            .RE
            .PP P

                        Specify the coordinate from which to load the texel.

                .RE
                .PP sample

                            When present, specifies the sample within the image to load

                    .RE

                .SH "DESCRIPTION"
                    .PP imageLoad loads the texel at the coordinate P from the image unit image. For multi-sample loads, the sample number is given by sample. When image, P, sample identify a valid texel, the bits used to represent the selected texel in memory are converted to a vec4, ivec4, or uvec4 in the manner described in the OpenGL Specification and returned.

                .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{ imageLoad 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 imageStore(), imageAtomicAdd(), imageAtomicMin(), imageAtomicMax(), imageAtomicAnd(), imageAtomicOr(), imageAtomicXor(), imageAtomicExchange(), imageAtomicCompSwap()

                .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