pub fn mip_levels_from_dims(width: u32, height: u32) -> u8
Calculate the number of mip levels for a 2D image with given dimensions