pub enum ReductionMode {
WeightedAverage,
Minimum,
Maximum,
}Expand description
Specifies how the image texels in the filter kernel are reduced to a single value.
Variants§
WeightedAverage
Minimum
Only valid if Features::SAMPLER_FILTER_MINMAX is enabled.
Maximum
Only valid if Features::SAMPLER_FILTER_MINMAX is enabled.
Trait Implementations§
Source§impl Clone for ReductionMode
impl Clone for ReductionMode
impl Copy for ReductionMode
Source§impl Debug for ReductionMode
impl Debug for ReductionMode
impl Eq for ReductionMode
Source§impl Hash for ReductionMode
impl Hash for ReductionMode
Source§impl Ord for ReductionMode
impl Ord for ReductionMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReductionMode
impl PartialEq for ReductionMode
Source§impl PartialOrd for ReductionMode
impl PartialOrd for ReductionMode
impl StructuralPartialEq for ReductionMode
Auto Trait Implementations§
impl Forget for ReductionMode
impl Freeze for ReductionMode
impl Move for ReductionMode
impl RefUnwindSafe for ReductionMode
impl Send for ReductionMode
impl Sync for ReductionMode
impl Unpin for ReductionMode
impl UnsafeUnpin for ReductionMode
impl UnwindSafe for ReductionMode
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