Pixel format.
Image data (in fact, it only learns the length from it).
Image width.
Image height.
Let's check the performance:
immutable simpleImageWidth = 32; immutable simpleImageHeight = 32; ubyte[] data = new ubyte[](simpleImageWidth * simpleImageHeight * bytesPerColor!(PixelFormat.RGBA)); assert(validateImageData!(PixelFormat.RGBA)(data, simpleImageWidth, simpleImageHeight));
Checks if the data for the image is valid.