IMAGESIZE(3G)

    .SH "NAME" imageSize - retrieve the dimensions of an image
    .SH "DECLARATION"

            .HP u int imageSize(gimage1D image);
            .HP u ivec2 imageSize(gimage2D image);
            .HP u ivec3 imageSize(gimage3D image);
            .HP u ivec2 imageSize(gimageCube image);
            .HP u ivec3 imageSize(gimageCubeArray image);
            .HP u ivec2 imageSize(gimageRect image);
            .HP u ivec2 imageSize(gimage1DArray image);
            .HP u ivec3 imageSize(gimage2DArray image);
            .HP u int imageSize(gimageBuffer image);
            .HP u ivec2 imageSize(gimage2DMS image);
            .HP u ivec3 imageSize(gimage2DMSArray image);

    .SH "PARAMETERS"

        .PP image

                    Specifies the image to which the texture whose dimensions to retrieve is bound.

            .RE

        .SH "DESCRIPTION"
            .PP imageSize returns the dimensions of the image bound to image. The components in the return value are filled in, in order, with the width, height and depth of the image. For the array forms, the last component of the return value is the number of layers in the texture array.

        .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{ imageSize 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 textureSize(), imageLoad(), imageStore()

        .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