pub enum Filtering {
BaseBilinear {
subtexel: Subtexel,
},
Point,
Bilinear,
Trilinear,
}Expand description
How a texture is filtered: the caller’s stated policy.
Variants§
BaseBilinear
The base level only, whatever level of detail the program asks for: bilinear in f32 over texels decoded once,
the texel coordinate resolved to subtexel precision (Decoded::bilinear_at).
Point
The texel the coordinate falls in, of the stored level nearest the level of detail (Levels::point,
Levels::nearest_level), in f64: a point filter with a point mip filter.
Bilinear
Bilinear in f64 (Levels::bilinear) in the stored level nearest the level of detail: a linear filter with a
point mip filter.
Trilinear
The two stored levels about the level of detail mixed, each bilinear in f64 (Levels::trilinear).
Trait Implementations§
impl Copy for Filtering
impl Eq for Filtering
impl StructuralPartialEq for Filtering
Auto Trait Implementations§
impl Forget for Filtering
impl Freeze for Filtering
impl RefUnwindSafe for Filtering
impl Send for Filtering
impl Sync for Filtering
impl Unpin for Filtering
impl UnsafeUnpin for Filtering
impl UnwindSafe for Filtering
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.