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
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.