pub trait MipmapSize<T> {
    // Required methods
    fn calculate_miplevels(self) -> T;
    fn scale_mipmap(self, miplevel: T) -> Size<T>;
}
Expand description

Trait for size scaling relating to mipmap generation.

Required Methods§

source

fn calculate_miplevels(self) -> T

Calculate the number of mipmap levels for a given size.

source

fn scale_mipmap(self, miplevel: T) -> Size<T>

Scale the size according to the given mipmap level.

Implementations on Foreign Types§

source§

impl MipmapSize<u32> for Size<u32>

source§

fn calculate_miplevels(self) -> u32

source§

fn scale_mipmap(self, miplevel: u32) -> Size<u32>

Implementors§