C Specification
To copy data from a memory region to an image object by specifying copy parameters in memory, call:
// Provided by VK_NV_copy_memory_indirect
void vkCmdCopyMemoryToImageIndirectNV(
VkCommandBuffer commandBuffer,
VkDeviceAddress copyBufferAddress,
uint32_t copyCount,
uint32_t stride,
VkImage dstImage,
VkImageLayout dstImageLayout,
const VkImageSubresourceLayers* pImageSubresources);
Parameters
-
commandBufferis the command buffer into which the command will be recorded. -
copyBufferAddressis the address specifying the copy parameters which are laid out in memory as an array of VkCopyMemoryToImageIndirectCommandNV structures. -
copyCountis the number of copies to execute, and can be zero. -
strideis the byte stride between successive sets of copy parameters. -
dstImageis the destination image. -
dstImageLayoutis the layout of the destination image subresources for the copy. -
pImageSubresourcesis a pointer to an array ofcopyCountVkImageSubresourceLayers structures, specifying the image subresources of the destination image data for the copy operation.
Description
Each region in copyBufferAddress is copied from the source memory
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.
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.