pub struct Mipmap {
pub filter: Interpolation,
pub max_levels: u32,
pub max_ratio: u32,
}
Expand description
Mipmap settings for a texture.
Fields§
§filter: Interpolation
Specifies what type of interpolation to use between the two closest mipmaps.
max_levels: u32
Specifies the maximum number of mipmap levels that should be created for the texture. If this is 1, no mip maps will be created.
max_ratio: u32
Specifies the maximum ratio of anisotropy to be used when creating mipmaps for the texture. If this is 1, only isotropic mipmaps will be created.
Trait Implementations§
Source§impl Ord for Mipmap
impl Ord for Mipmap
Source§impl PartialOrd for Mipmap
impl PartialOrd for Mipmap
impl Copy for Mipmap
impl Eq for Mipmap
impl StructuralPartialEq for Mipmap
Auto Trait Implementations§
impl Freeze for Mipmap
impl RefUnwindSafe for Mipmap
impl Send for Mipmap
impl Sync for Mipmap
impl Unpin for Mipmap
impl UnwindSafe for Mipmap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more