vkCopyImageToImage(3)
C Specification
To copy data from an image object to another image object using the host,call:
// Provided by VK_VERSION_1_4VkResult vkCopyImageToImage( VkDevice device, const VkCopyImageToImageInfo* pCopyImageToImageInfo);// Provided by VK_EXT_host_image_copy// Equivalent to vkCopyImageToImageVkResult vkCopyImageToImageEXT( VkDevice device, const VkCopyImageToImageInfo* pCopyImageToImageInfo);Parameters
deviceis the device which ownspCopyImageToImageInfo->srcImageandpCopyImageToImageInfo->dstImage.pCopyImageToImageInfois a pointer to aVkCopyImageToImageInfo structure describing the copy parameters.
Description
This command is functionally similar tovkCmdCopyImage2, except it isexecuted on the host.The memory ofpCopyImageToImageInfo->srcImage andpCopyImageToImageInfo->dstImage is accessed by the host as ifcoherent.
If the device has written to the memory of Because queue submissionsautomatically make host memory visible to the device, there would not be aneed for a memory barrier before using the results of this copy operation in |
VUID-vkCopyImageToImage-device-parameter
devicemust be a validVkDevice handleVUID-vkCopyImageToImage-pCopyImageToImageInfo-parameter
pCopyImageToImageInfomust be a valid pointer to a validVkCopyImageToImageInfo structure
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.