#[non_exhaustive]
pub enum PipelineFilter {
Nearest,
Linear,
NearestMipmapNearest,
LinearMipmapNearest,
NearestMipmapLinear,
LinearMipmapLinear,
}
Expand description
Pipeline texture filtering.
Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Nearest
Measuring in manhatten distance from the, current pixel center, use the nearest texture texel
Linear
Use the weighted average of the 4 texels nearest the current pixel center
NearestMipmapNearest
Select the mimap level whose
texel size most closely matches the current pixel, and use the
PipelineFilter::Nearest
criterion
LinearMipmapNearest
Select the mimap level whose
texel size most closely matches the current pixel, and use the
PipelineFilter::Linear
criterion
NearestMipmapLinear
Select the two mimap levels
whose texel size most closely matches the current pixel, use
the PipelineFilter::Nearest
criterion on each one and take
their weighted average
LinearMipmapLinear
Select the two mimap levels
whose texel size most closely matches the current pixel, use
the PipelineFilter::Linear
criterion on each one and take
their weighted average
Trait Implementations
sourceimpl Clone for PipelineFilter
impl Clone for PipelineFilter
sourcefn clone(&self) -> PipelineFilter
fn clone(&self) -> PipelineFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PipelineFilter
impl Debug for PipelineFilter
sourceimpl Display for PipelineFilter
impl Display for PipelineFilter
sourceimpl Hash for PipelineFilter
impl Hash for PipelineFilter
sourceimpl Ord for PipelineFilter
impl Ord for PipelineFilter
sourceimpl PartialEq<PipelineFilter> for PipelineFilter
impl PartialEq<PipelineFilter> for PipelineFilter
sourceimpl PartialOrd<PipelineFilter> for PipelineFilter
impl PartialOrd<PipelineFilter> for PipelineFilter
sourcefn partial_cmp(&self, other: &PipelineFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &PipelineFilter) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PipelineFilter
impl Eq for PipelineFilter
impl StructuralEq for PipelineFilter
impl StructuralPartialEq for PipelineFilter
Auto Trait Implementations
impl RefUnwindSafe for PipelineFilter
impl Send for PipelineFilter
impl Sync for PipelineFilter
impl Unpin for PipelineFilter
impl UnwindSafe for PipelineFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.