#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(u8)]
pub enum PixelFormat {
Prgb32 = 1,
Xrgb32 = 2,
A8 = 3,
}
impl PixelFormat {
pub const fn bytes_per_pixel(self) -> usize {
match self {
Self::Prgb32 | Self::Xrgb32 => 4,
Self::A8 => 1,
}
}
}