C Specification

To copy data from host memory to an image object, call:

// Provided by VK_EXT_host_image_copy
VkResult vkCopyMemoryToImageEXT(
    VkDevice                                    device,
    const VkCopyMemoryToImageInfoEXT*           pCopyMemoryToImageInfo);


  • device is the device which owns pCopyMemoryToImageInfo->dstImage.

  • pCopyMemoryToImageInfo is a pointer to a VkCopyMemoryToImageInfoEXT structure describing the copy parameters.


This command is functionally similar to vkCmdCopyBufferToImage2, except it is executed on the host and reads from host memory instead of a buffer.

Valid Usage
  • VUID-vkCopyMemoryToImageEXT-hostImageCopy-09058
    The hostImageCopy feature must be enabled

Valid Usage (Implicit)
  • VUID-vkCopyMemoryToImageEXT-device-parameter
    device must be a valid VkDevice handle

  • VUID-vkCopyMemoryToImageEXT-pCopyMemoryToImageInfo-parameter
    pCopyMemoryToImageInfo must be a valid pointer to a valid VkCopyMemoryToImageInfoEXT structure

Return Codes
On success, this command returns

On failure, this command returns




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-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0