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,
} VkSamplerReductionMode;
pub struct SamplerReductionMode(u32);
impl SamplerReductionMode {
pub const WEIGHTED_AVERAGE: Self = 0;
pub const MIN: Self = 1;
pub const MAX: Self = 2;
}
#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