pub enum MipFilter {
None,
Nearest,
Linear,
}Expand description
How mip levels are used when a texture is minified.
Variants§
None
No mip levels: the base level only (glTF’s NEAREST or LINEAR minification filter).
Nearest
The nearest mip level.
Linear
Between the two nearest mip levels (trilinear with a linear min).
Trait Implementations§
impl Copy for MipFilter
impl Eq for MipFilter
Source§impl Ord for MipFilter
impl Ord for MipFilter
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MipFilter
impl PartialOrd for MipFilter
Source§impl Serialize for MipFilter
impl Serialize for MipFilter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MipFilter
Auto Trait Implementations§
impl Forget for MipFilter
impl Freeze for MipFilter
impl RefUnwindSafe for MipFilter
impl Send for MipFilter
impl Sync for MipFilter
impl Unpin for MipFilter
impl UnsafeUnpin for MipFilter
impl UnwindSafe for MipFilter
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