VkSubresourceHostMemcpySizeEXT(3)

# VkSubresourceHostMemcpySizeEXT(3) Manual Page

## Name

VkSubresourceHostMemcpySizeEXT - Memory size needed to copy to or from an image on the host with VK_HOST_IMAGE_COPY_MEMCPY_EXT

Loading… please wait.

## C Specification

To query the memory size needed to copy to or from an image using vkCopyMemoryToImageEXT or vkCopyImageToMemoryEXT when the `VK_HOST_IMAGE_COPY_MEMCPY_EXT` flag is specified, add a VkSubresourceHostMemcpySizeEXT structure to the `pNext` chain of the VkSubresourceLayout2EXT structure in a call to vkGetImageSubresourceLayout2EXT.

The `VkSubresourceHostMemcpySizeEXT` structure is defined as:

    // Provided by VK_EXT_host_image_copy
    typedef struct VkSubresourceHostMemcpySizeEXT {
        VkStructureType    sType;
        void*              pNext;
        VkDeviceSize       size;
    } VkSubresourceHostMemcpySizeEXT;

## Members

- `sType` is a VkStructureType value identifying this structure.

- `pNext` is `NULL` or a pointer to a structure extending this structure.

- `size` is the size in bytes of the image subresource.

## Description

Valid Usage (Implicit)

- VUID-VkSubresourceHostMemcpySizeEXT-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT`

## See Also

VK_EXT_host_image_copy, VkDeviceSize, VkStructureType

## 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

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0