buffer_size

Function buffer_size 

Source
pub fn buffer_size(format: PixelFormat, count: usize) -> usize
Expand 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.