Enum vulkano::sampler::SamplerReductionMode
source · [−]#[repr(i32)]
pub enum SamplerReductionMode {
WeightedAverage,
Min,
Max,
}
Expand description
Describes how the value sampled from a mipmap should be calculated from the selected
pixels, for the Linear
and Cubic
filters.
Variants
WeightedAverage
Calculates a weighted average of the selected pixels. For Linear
filtering the pixels
are evenly weighted, for Cubic
filtering they use Catmull-Rom weights.
Min
Calculates the minimum of the selected pixels.
The sampler_filter_minmax
feature or the
ext_sampler_filter_minmax
extension must be enabled on the device.
Max
Calculates the maximum of the selected pixels.
The sampler_filter_minmax
feature or the
ext_sampler_filter_minmax
extension must be enabled on the device.
Trait Implementations
sourceimpl Clone for SamplerReductionMode
impl Clone for SamplerReductionMode
sourcefn clone(&self) -> SamplerReductionMode
fn clone(&self) -> SamplerReductionMode
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 SamplerReductionMode
impl Debug for SamplerReductionMode
sourceimpl From<SamplerReductionMode> for SamplerReductionMode
impl From<SamplerReductionMode> for SamplerReductionMode
sourcefn from(val: SamplerReductionMode) -> Self
fn from(val: SamplerReductionMode) -> Self
Performs the conversion.
sourceimpl Hash for SamplerReductionMode
impl Hash for SamplerReductionMode
impl Copy for SamplerReductionMode
impl Eq for SamplerReductionMode
impl StructuralEq for SamplerReductionMode
impl StructuralPartialEq for SamplerReductionMode
Auto Trait Implementations
impl RefUnwindSafe for SamplerReductionMode
impl Send for SamplerReductionMode
impl Sync for SamplerReductionMode
impl Unpin for SamplerReductionMode
impl UnwindSafe for SamplerReductionMode
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more