Structures

VkDecompressMemoryInfoEXT

Structure specifying decompression memory info

The VkDecompressMemoryInfoEXT structure is defined as:

typedef struct VkDecompressMemoryInfoEXT {
    VkStructureType sType;
    const void* pNext;
    VkMemoryDecompressionMethodFlagsEXT decompressionMethod;
    uint32_t regionCount;
    const VkDecompressMemoryRegionEXT* pRegions;
} VkDecompressMemoryInfoEXT;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • decompressionMethod is a bitmask of VkMemoryDecompressionMethodFlagBitsEXT with a single bit set specifying the method used to decompress data.
  • regionCount is the number of regions to decompress.
  • pRegions is a pointer to an array of VkDecompressMemoryRegionEXT structures specifying the regions to decompress.

Each memory region specified in pRegions is decompressed from the source to the destination address based on the decompression method specified in decompressionMethod. If any of the specified source and destination regions overlap in memory, then the results of decompression are undefined.

Valid Usage

VUID-VkDecompressMemoryInfoEXT-decompressionMethod-07690

The decompressionMethod must have a single bit set

VUID-VkDecompressMemoryInfoEXT-decompressionMethod-11762

If decompressionMethod is VK_MEMORY_DECOMPRESSION_METHOD_GDEFLATE_1_0_BIT_EXT, then for each element of pRegions, decompressedSize must be less than or equal to 65536 bytes

VUID-VkDecompressMemoryInfoEXT-decompressionMethod-11763

decompressionMethod must be a valid bit specified in VkPhysicalDeviceMemoryDecompressionPropertiesEXT::decompressionMethods

Valid Usage (Implicit)

VUID-VkDecompressMemoryInfoEXT-sType-sType

sType must be VK_STRUCTURE_TYPE_DECOMPRESS_MEMORY_INFO_EXT

VUID-VkDecompressMemoryInfoEXT-pRegions-parameter

pRegions must be a valid pointer to an array of regionCount VkDecompressMemoryRegionEXT structures