#[repr(u32)]pub enum Filter {
Nearest = 9_728,
Linear = 9_729,
}
Expand description
Filter options for computing pixels when the texture maps to an area different from one texture element.
Variants§
Nearest = 9_728
Use the closest texel, by Manhattan distance.
Linear = 9_729
Use a weighted average of the four texels closest to the pixel.
Trait Implementations§
impl Copy for Filter
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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