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: bool
When 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: bool
When 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_UNORM
vk::Format::R8_SNORM
vk::Format::R16_UNORM
vk::Format::R16_SNORM
vk::Format::R16_SFLOAT
vk::Format::R32_SFLOAT
vk::Format::D16_UNORM
vk::Format::X8_D24_UNORM_PACK32
vk::Format::D32_SFLOAT
vk::Format::D16_UNORM_S8_UINT
vk::Format::D24_UNORM_S8_UINT
vk::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.