static UPInt SF_STDCALL GetMipLevelsSize(ImageFormat format, const ImageSize& sz, unsigned levels, unsigned plane = 0);
GetMipLevelSize calculates the total size of all mipmaps levels in bytes, given format and size.
Parameters |
Description |
ImageFormat format |
The ImageFormat of the mipmap. |
const ImageSize& sz |
The size of the image. |
unsigned levels |
The number of levels to sum. |
unsigned plane = 0 |
The index of the corresponding plane. |
A UPInt value containing the size of the mipmap level in bytes.