C Specification
To copy data between buffer objects, call:
// Provided by VK_KHR_copy_commands2
void vkCmdCopyBuffer2KHR(
VkCommandBuffer commandBuffer,
const VkCopyBufferInfo2* pCopyBufferInfo);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
pCopyBufferInfo
is a pointer to a VkCopyBufferInfo2 structure describing the copy parameters.
Description
Each source region specified by pCopyBufferInfo->pRegions
is copied
from the source buffer to the destination region of the destination buffer.
If any of the specified regions in pCopyBufferInfo->srcBuffer
overlaps
in memory with any of the specified regions in
pCopyBufferInfo->dstBuffer
, values read from those overlapping regions
are undefined.
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.