pub enum Filter {
Nearest,
Linear,
}
Expand description
How to filter the image when sampling. They correspond to increasing levels of quality, but also cost.
Variants§
Nearest
Selects a single texel from the current mip level and uses its value.
Mip filtering selects the filtered value from one level.
Linear
Selects multiple texels and calculates the value via multivariate interpolation. * 1D: Linear interpolation * 2D/Cube: Bilinear interpolation * 3D: Trilinear interpolation
Trait Implementations§
Source§impl Ord for Filter
impl Ord for Filter
Source§impl PartialOrd for Filter
impl PartialOrd for Filter
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