Enum ux::prelude::dx::MaterialFilter [−][src]
#[non_exhaustive] pub enum MaterialFilter { Nearest, Linear, NearestMipmapNearest, LinearMipmapNearest, NearestMipmapLinear, LinearMipmapLinear, // some variants omitted }
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)
Measuring in manhatten distance from the, current pixel center, use the nearest texture texel
Use the weighted average of the 4 texels nearest the current pixel center
Select the mimap level whose
texel size most closely matches the current pixel, and use the
MaterialFilter::Nearest
criterion
Select the mimap level whose
texel size most closely matches the current pixel, and use the
MaterialFilter::Linear
criterion
Select the two mimap levels
whose texel size most closely matches the current pixel, use
the MaterialFilter::Nearest
criterion on each one and take
their weighted average
Select the two mimap levels
whose texel size most closely matches the current pixel, use
the MaterialFilter::Linear
criterion on each one and take
their weighted average
Trait Implementations
impl Clone for MaterialFilter
[src]
impl Clone for MaterialFilter
[src]pub fn clone(&self) -> MaterialFilter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MaterialFilter
[src]
impl Copy for MaterialFilter
[src]impl Debug for MaterialFilter
[src]
impl Debug for MaterialFilter
[src]impl Display for MaterialFilter
[src]
impl Display for MaterialFilter
[src]impl Eq for MaterialFilter
[src]
impl Eq for MaterialFilter
[src]impl<'a> FromValue<'a> for MaterialFilter
[src]
impl<'a> FromValue<'a> for MaterialFilter
[src]pub unsafe fn from_value(value: &Value) -> MaterialFilter
[src]
impl<'a> FromValueOptional<'a> for MaterialFilter
[src]
impl<'a> FromValueOptional<'a> for MaterialFilter
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<MaterialFilter>
[src]
impl Hash for MaterialFilter
[src]
impl Hash for MaterialFilter
[src]impl Ord for MaterialFilter
[src]
impl Ord for MaterialFilter
[src]impl PartialEq<MaterialFilter> for MaterialFilter
[src]
impl PartialEq<MaterialFilter> for MaterialFilter
[src]pub fn eq(&self, other: &MaterialFilter) -> bool
[src]
pub fn ne(&self, other: &MaterialFilter) -> bool
[src]
impl PartialOrd<MaterialFilter> for MaterialFilter
[src]
impl PartialOrd<MaterialFilter> for MaterialFilter
[src]pub fn partial_cmp(&self, other: &MaterialFilter) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl SetValue for MaterialFilter
[src]
impl SetValue for MaterialFilter
[src]pub unsafe fn set_value(value: &mut Value, this: &MaterialFilter)
[src]
impl StaticType for MaterialFilter
[src]
impl StaticType for MaterialFilter
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for MaterialFilter
[src]
impl StructuralEq for MaterialFilter
[src]impl StructuralPartialEq for MaterialFilter
[src]
impl StructuralPartialEq for MaterialFilter
[src]Auto Trait Implementations
impl RefUnwindSafe for MaterialFilter
impl RefUnwindSafe for MaterialFilter
impl Send for MaterialFilter
impl Send for MaterialFilter
impl Sync for MaterialFilter
impl Sync for MaterialFilter
impl Unpin for MaterialFilter
impl Unpin for MaterialFilter
impl UnwindSafe for MaterialFilter
impl UnwindSafe for MaterialFilter
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,