Enum
VkSamplerReductionMode
Specify reduction mode for texture filtering
Reduction modes are specified by VkSamplerReductionMode, which takes values:
typedef enum VkSamplerReductionMode {
VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE = 0,
VK_SAMPLER_REDUCTION_MODE_MIN = 1,
VK_SAMPLER_REDUCTION_MODE_MAX = 2,
// Provided by extensions
VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT = VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE,
VK_SAMPLER_REDUCTION_MODE_MIN_EXT = VK_SAMPLER_REDUCTION_MODE_MIN,
VK_SAMPLER_REDUCTION_MODE_MAX_EXT = VK_SAMPLER_REDUCTION_MODE_MAX,
VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM = -999999000,
} VkSamplerReductionMode;
pub struct SamplerReductionMode(u32);
impl SamplerReductionMode {
pub const WEIGHTED_AVERAGE: Self = 0;
pub const MIN: Self = 1;
pub const MAX: Self = 2;
pub const WEIGHTED_AVERAGE_EXT: Self = Self::WEIGHTED_AVERAGE;
pub const MIN_EXT: Self = Self::MIN;
pub const MAX_EXT: Self = Self::MAX;
pub const WEIGHTED_AVERAGE_RANGECLAMP_QCOM: Self = -999999000;
}
#define VkSamplerReductionModeEXT VkSamplerReductionMode
const SamplerReductionModeEXT: _ = vk::SamplerReductionMode;
VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGEspecifies that texel values are combined by computing a weighted average of values in the footprint, using weights as specified in the image operations chapter.VK_SAMPLER_REDUCTION_MODE_MINspecifies that texel values are combined by taking the component-wise minimum of values in the footprint with non-zero weights.VK_SAMPLER_REDUCTION_MODE_MAXspecifies that texel values are combined by taking the component-wise maximum of values in the footprint with non-zero weights.VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOMspecifies values are combined as described byVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE, followed by a texel range clamp.
Parent
VK_VERSION_1_2Type
Enum