pub fn default_mip_settings_for_image_size(
        width: u32,
        height: u32,
    ) -> DecodedImageMips {
        let max_dimension = std::cmp::max(width, height);
        let mip_level_count = (max_dimension as f32).log2().floor() as u32 + 1;
        DecodedImageMips::Runtime(mip_level_count)
    }
// Provides default settings for an image that's loaded without metadata specifying mip settings
Provides default settings for an image that's loaded without metadata specifying mip settings
Provides default settings for an image that ' s loaded without metadata specifying mip settings
pub fn default_mip_settings_for_image_size(
        width: u32,
        height: u32,
    ) -> DecodedImageMips {
        let max_dimension = std::cmp::max(width, height);
        let mip_level_count = (max_dimension as f32).log2().floor() as u32 + 1;
        DecodedImageMips::Runtime(mip_level_count)
    }
pub fn default_mip_settings_for_image_size ( width : u32 , height : u32 , ) -> DecodedImageMips { let max_dimension = std :: cmp :: max ( width , height ) ; let mip_level_count = ( max_dimension as f32 ) . log2 ( ) . floor ( ) as u32 + 1 ; DecodedImageMips :: Runtime ( mip_level_count ) }
Provides default settings for an image that's loaded without metadata specifying mip settings
Provides default settings for an image that ' s loaded without metadata specifying mip settings
width
u32
height
u32
width
u32
height
u32