pub struct Mipmap {
pub filter: Interpolation,
pub max_levels: u32,
pub max_ratio: u32,
}Expand description
Mipmap settings for a texture.
Fields§
§filter: InterpolationSpecifies what type of interpolation to use between the two closest mipmaps.
max_levels: u32Specifies 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: u32Specifies 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<'de> Deserialize<'de> for Mipmap
impl<'de> Deserialize<'de> for Mipmap
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more