Structures

VkRenderingFragmentDensityMapAttachmentInfoEXT

Structure specifying fragment shading rate attachment information

The VkRenderingFragmentDensityMapAttachmentInfoEXT structure is defined as:

typedef struct VkRenderingFragmentDensityMapAttachmentInfoEXT {
    VkStructureType sType;
    const void* pNext;
    VkImageView imageView;
    VkImageLayout imageLayout;
} VkRenderingFragmentDensityMapAttachmentInfoEXT;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • imageView is the image view that will be used as a fragment density map attachment.
  • imageLayout is the layout that imageView will be in during rendering.

This structure can be included in the pNext chain of VkRenderingInfo to define a fragment density map. If this structure is not included in the pNext chain, imageView is treated as VK_NULL_HANDLE.

Valid Usage

VUID-VkRenderingFragmentDensityMapAttachmentInfoEXT-imageView-06157

If imageView is not VK_NULL_HANDLE, imageLayout must be VK_IMAGE_LAYOUT_GENERAL or VK_IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT

VUID-VkRenderingFragmentDensityMapAttachmentInfoEXT-imageView-06158

If imageView is not VK_NULL_HANDLE, it must have been created with VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT

VUID-VkRenderingFragmentDensityMapAttachmentInfoEXT-imageView-06159

If imageView is not VK_NULL_HANDLE, it must not have been created with VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT

VUID-VkRenderingFragmentDensityMapAttachmentInfoEXT-apiVersion-07908

If the multiview feature is not enabled, VkPhysicalDeviceProperties::apiVersion is less than Vulkan 1.1, and imageView is not VK_NULL_HANDLE, it must have a layerCount equal to 1

Valid Usage (Implicit)