C Specification
To copy data from a memory region to an image object by specifying copy parameters in memory, call:
// Provided by VK_KHR_copy_memory_indirect
void vkCmdCopyMemoryToImageIndirectKHR(
VkCommandBuffer commandBuffer,
const VkCopyMemoryToImageIndirectInfoKHR* pCopyMemoryToImageIndirectInfo);
Parameters
-
commandBufferis the command buffer into which the command will be recorded. -
pCopyMemoryToImageIndirectInfois a pointer to a VkCopyMemoryToImageIndirectInfoKHR structure which contains the copy parameters, including the number of copies to execute and a strided array of VkCopyMemoryToImageIndirectCommandKHR structures.
Description
Each region specified in the memory referenced by
pCopyMemoryToImageIndirectInfo->copyAddressRange is copied from the
source region to an image region in the destination image.
If the destination image is of type VK_IMAGE_TYPE_3D, the starting
slice and number of slices to copy are specified in
pImageSubresources->baseArrayLayer and
pImageSubresources->layerCount respectively as imageOffset and
imageExtent from VkCopyMemoryToImageIndirectCommandKHR are only
available at device execution time.
The results are undefined if any of the source and destination regions
overlap in memory.
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.