C Specification

To copy data between memory ranges, call:

// Provided by VK_KHR_device_address_commands
void vkCmdCopyMemoryKHR(
    VkCommandBuffer                             commandBuffer,
    const VkCopyDeviceMemoryInfoKHR*            pCopyMemoryInfo);

Parameters

  • commandBuffer is the command buffer into which the command will be recorded.

  • pCopyMemoryInfo a pointer to a VkCopyDeviceMemoryInfoKHR structure describing the copies to perform.

Description

Valid Usage
Valid Usage (Implicit)
  • VUID-vkCmdCopyMemoryKHR-commandBuffer-parameter
    commandBuffer must be a valid VkCommandBuffer handle

  • VUID-vkCmdCopyMemoryKHR-pCopyMemoryInfo-parameter
    If pCopyMemoryInfo is not NULL, pCopyMemoryInfo must be a valid pointer to a valid VkCopyDeviceMemoryInfoKHR structure

  • VUID-vkCmdCopyMemoryKHR-commandBuffer-recording
    commandBuffer must be in the recording state

  • VUID-vkCmdCopyMemoryKHR-commandBuffer-cmdpool
    The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_TRANSFER_BIT operations

  • VUID-vkCmdCopyMemoryKHR-renderpass
    This command must only be called outside of a render pass instance

  • VUID-vkCmdCopyMemoryKHR-suspended
    This command must not be called between suspended render pass instances

  • VUID-vkCmdCopyMemoryKHR-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

Command Properties
Command Buffer Levels Render Pass Scope Video Coding Scope Supported Queue Types Command Type

Primary
Secondary

Outside

Outside

VK_QUEUE_TRANSFER_BIT

Action

Conditional Rendering

vkCmdCopyMemoryKHR is not affected by conditional rendering

See Also

Document Notes

For more information, see the Vulkan Specification.

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0