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
Source§fn clone(&self) -> ReductionMode
fn clone(&self) -> ReductionMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReductionMode
impl Debug for ReductionMode
Source§impl Hash for ReductionMode
impl Hash for ReductionMode
Source§impl Ord for ReductionMode
impl Ord for ReductionMode
Source§fn cmp(&self, other: &ReductionMode) -> Ordering
fn cmp(&self, other: &ReductionMode) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ReductionMode
impl PartialEq for ReductionMode
Source§impl PartialOrd for ReductionMode
impl PartialOrd for ReductionMode
impl Copy for ReductionMode
impl Eq for ReductionMode
impl StructuralPartialEq for ReductionMode
Auto Trait Implementations§
impl Freeze for ReductionMode
impl RefUnwindSafe for ReductionMode
impl Send for ReductionMode
impl Sync for ReductionMode
impl Unpin 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