Function Prototype
vkCmdDecompressMemoryEXT
Decompress data between memory regions
To decompress memory containing compressed data, call:
void vkCmdDecompressMemoryEXT(
VkCommandBuffer commandBuffer,
const VkDecompressMemoryInfoEXT* pDecompressMemoryInfoEXT);
pub fn cmd_decompress_memory_ext(
command_buffer: vk::CommandBuffer,
p_decompress_memory_info_ext: *const vk::DecompressMemoryInfoEXT,
);
commandBufferis the command buffer into which the command will be recorded.pDecompressMemoryInfoEXTis a pointer to a VkDecompressMemoryInfoEXT structure describing the decompression parameters.
Valid Usage
VUID-vkCmdDecompressMemoryEXT-memoryDecompression-11761
The memoryDecompression feature
must be enabled
Valid Usage (Implicit)
VUID-vkCmdDecompressMemoryEXT-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdDecompressMemoryEXT-pDecompressMemoryInfoEXT-parameter
pDecompressMemoryInfoEXT must be a valid pointer to a valid VkDecompressMemoryInfoEXT structure
VUID-vkCmdDecompressMemoryEXT-commandBuffer-recording
commandBuffer must be in the recording state
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
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Type
Function Prototype
Command Buffer Level
primarysecondary
Render Pass Scope
outside
Queue Types
VK_QUEUE_GRAPHICS_BITVK_QUEUE_COMPUTE_BIT
Command Type
action