rendy_texture

Function mip_levels_from_dims

Source
pub fn mip_levels_from_dims(width: u32, height: u32) -> u8
Expand description

Calculate the number of mip levels for a 2D image with given dimensions