pub const fn buffer_size_bpp(width: usize, height: usize, bpp: usize) -> usize
Expand description

Calculates the required buffer size.

This function is a workaround for current limitations in Rust const generics. It can be used to calculate the N parameter based on the size and bit depth of the framebuffer.