Function Prototype

vkCmdDecompressMemoryEXT

Decompress data between memory regions

To decompress memory containing compressed data, call:

void vkCmdDecompressMemoryEXT(
    VkCommandBuffer commandBuffer,
    const VkDecompressMemoryInfoEXT* pDecompressMemoryInfoEXT);
  • commandBuffer is the command buffer into which the command will be recorded.
  • pDecompressMemoryInfoEXT is a pointer to a VkDecompressMemoryInfoEXT structure describing the decompression parameters.

Valid Usage (Implicit)

VUID-vkCmdDecompressMemoryEXT-pDecompressMemoryInfoEXT-parameter

pDecompressMemoryInfoEXT must be a valid pointer to a valid VkDecompressMemoryInfoEXT structure

VUID-vkCmdDecompressMemoryEXT-commandBuffer-cmdpool

The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations

VUID-vkCmdDecompressMemoryEXT-renderpass

This command must only be called outside of a render pass instance

VUID-vkCmdDecompressMemoryEXT-suspended

This command must not be called between suspended render pass instances

VUID-vkCmdDecompressMemoryEXT-videocoding

This command must only be called outside of a video coding scope

Host Synchronization

  • Host access to commandBuffer must be externally synchronized
  • Host access to the VkCommandPool that commandBuffer was allocated from must be externally synchronized