Structures

VkImageDrmFormatModifierListCreateInfoEXT

Specify that an image must be created with a DRM format modifier from the provided list

If the pNext chain of VkImageCreateInfo includes a VkImageDrmFormatModifierListCreateInfoEXT structure, then the image will be created with one of the Linux DRM format modifiers listed in the structure. The choice of modifier is implementation-dependent.

The VkImageDrmFormatModifierListCreateInfoEXT structure is defined as:

typedef struct VkImageDrmFormatModifierListCreateInfoEXT {
    VkStructureType sType;
    const void* pNext;
    uint32_t drmFormatModifierCount;
    const uint64_t* pDrmFormatModifiers;
} VkImageDrmFormatModifierListCreateInfoEXT;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • drmFormatModifierCount is the length of the pDrmFormatModifiers array.
  • pDrmFormatModifiers is a pointer to an array of Linux DRM format modifiers.

Valid Usage

VUID-VkImageDrmFormatModifierListCreateInfoEXT-pDrmFormatModifiers-02263

Each modifier in pDrmFormatModifiers must be compatible with the parameters in VkImageCreateInfo and its pNext chain, as determined by querying VkPhysicalDeviceImageFormatInfo2 extended with VkPhysicalDeviceImageDrmFormatModifierInfoEXT

Valid Usage (Implicit)

VUID-VkImageDrmFormatModifierListCreateInfoEXT-sType-sType

sType must be VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT

VUID-VkImageDrmFormatModifierListCreateInfoEXT-pDrmFormatModifiers-parameter

pDrmFormatModifiers must be a valid pointer to an array of drmFormatModifierCount uint64_t values