VkPhysicalDeviceSamplerFilterMinmaxProperties
The VkPhysicalDeviceSamplerFilterMinmaxProperties structure is defined
as:
typedef struct VkPhysicalDeviceSamplerFilterMinmaxProperties {
VkStructureType sType;
void* pNext;
VkBool32 filterMinmaxSingleComponentFormats;
VkBool32 filterMinmaxImageComponentMapping;
} VkPhysicalDeviceSamplerFilterMinmaxProperties;
or the equivalent
typedef VkPhysicalDeviceSamplerFilterMinmaxProperties VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.filterMinmaxSingleComponentFormatsis a boolean value indicating whether a minimum set of required formats support min/max filtering.filterMinmaxImageComponentMappingis a boolean value indicating whether the implementation supports non-identity component mapping of the image when doing min/max filtering.
If the VkPhysicalDeviceSamplerFilterMinmaxProperties structure is included in the pNext chain of the
VkPhysicalDeviceProperties2 structure passed to
vkGetPhysicalDeviceProperties2, it is filled in with each
corresponding implementation-dependent property.
If filterMinmaxSingleComponentFormats is VK_TRUE, the following
formats must 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.
If filterMinmaxImageComponentMapping is VK_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:.
If filterMinmaxImageComponentMapping is VK_TRUE this restriction
does not apply and image component mapping works as normal.
Valid Usage (Implicit)
VUID-VkPhysicalDeviceSamplerFilterMinmaxProperties-sType-sType
sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES