VkDecompressMemoryInfoEXT
The VkDecompressMemoryInfoEXT structure is defined as:
typedef struct VkDecompressMemoryInfoEXT {
VkStructureType sType;
const void* pNext;
VkMemoryDecompressionMethodFlagsEXT decompressionMethod;
uint32_t regionCount;
const VkDecompressMemoryRegionEXT* pRegions;
} VkDecompressMemoryInfoEXT;
pub struct DecompressMemoryInfoEXT {
s_type: vk::StructureType,
p_next: *const c_void,
decompression_method: vk::MemoryDecompressionMethodFlagsEXT,
region_count: u32,
p_regions: *const vk::DecompressMemoryRegionEXT,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.decompressionMethodis a bitmask of VkMemoryDecompressionMethodFlagBitsEXT with a single bit set specifying the method used to decompress data.regionCountis the number of regions to decompress.pRegionsis 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-pNext-pNext
pNext must be NULL
VUID-VkDecompressMemoryInfoEXT-decompressionMethod-parameter
decompressionMethod must be a valid combination of VkMemoryDecompressionMethodFlagBitsEXT values
VUID-VkDecompressMemoryInfoEXT-decompressionMethod-requiredbitmask
decompressionMethod must not be 0
VUID-VkDecompressMemoryInfoEXT-pRegions-parameter
pRegions must be a valid pointer to an array of regionCount VkDecompressMemoryRegionEXT structures
VUID-VkDecompressMemoryInfoEXT-regionCount-arraylength
regionCount must be greater than 0