pub struct SamplerFilterMinmaxProperties {
pub image_component_mapping: bool,
pub single_component_formats: bool,
}Expand description
Properties of the physical device for min/max sampler filtering.
Fields§
§image_component_mapping: boolWhen false the component mapping of the image view used with min/max filtering must have
been created with the r component set to the identity swizzle. Only the r component of the
sampled image value is defined and the other component values are undefined.
When true this restriction does not apply and image component mapping works as normal.
single_component_formats: boolWhen true the following formats support the
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT feature with VK_IMAGE_TILING_OPTIMAL,
if they support VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT:
vk::Format::R8_UNORMvk::Format::R8_SNORMvk::Format::R16_UNORMvk::Format::R16_SNORMvk::Format::R16_SFLOATvk::Format::R32_SFLOATvk::Format::D16_UNORMvk::Format::X8_D24_UNORM_PACK32vk::Format::D32_SFLOATvk::Format::D16_UNORM_S8_UINTvk::Format::D24_UNORM_S8_UINTvk::Format::D32_SFLOAT_S8_UINT
If the format is a depth/stencil format, this bit only specifies that the depth aspect (not the stencil aspect) of an image of this format supports min/max filtering, and that min/max filtering of the depth aspect is supported when depth compare is disabled in the sampler.