pub fn buffer_size(format: PixelFormat, count: usize) -> usizeExpand description
Calculated the size in bytes for a pixel format and count.
For packed formats, the returned size is rounded up to the nearest whole byte.
pub fn buffer_size(format: PixelFormat, count: usize) -> usizeCalculated the size in bytes for a pixel format and count.
For packed formats, the returned size is rounded up to the nearest whole byte.