To support initializing a new image in preparation for a host copy, it is now possible to transition a new image to IMAGE_LAYOUT_GENERAL or other host-copyable layouts via TransitionImageLayoutEXT. Additionally, it is possible to perform copies that preserve the swizzling layout of the image by using the HOST_IMAGE_COPY_MEMCPY_EXT flag. In that case, the memory size needed for copies to or from a buffer can be retrieved by chaining VkSubresourceHostMemcpySizeEXT to pLayout in GetImageSubresourceLayout2EXT.
VK_EXT_host_image_copyVK_KHR_get_physical_device_properties2 and VK_KHR_copy_commands2 and VK_KHR_format_feature_flags2| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME
The extension name. |
| public static final int | VK_EXT_HOST_IMAGE_COPY_SPEC_VERSION
The extension specification version. |
| public static final long | VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT
Extends |
| public static final int | VK_HOST_IMAGE_COPY_MEMCPY_EXT
VkHostImageCopyFlagBitsEXT - Bitmask specifying additional copy parameters Description
|
| public static final int | VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkCopyImageToImageEXT(VkDevice device, long pCopyImageToImageInfo)
Unsafe version of: |
| public static int | nvkCopyImageToMemoryEXT(VkDevice device, long pCopyImageToMemoryInfo)
Unsafe version of: |
| public static int | nvkCopyMemoryToImageEXT(VkDevice device, long pCopyMemoryToImageInfo)
Unsafe version of: |
| public static void | nvkGetImageSubresourceLayout2EXT(VkDevice device, long image, long pSubresource, long pLayout)
Unsafe version of: |
| public static int | nvkTransitionImageLayoutEXT(VkDevice device, int
the number of image layout transitions to perform. transitionCount, long pTransitions)Unsafe version of: |
| public static int | vkCopyImageToImageEXT(VkDevice
the device which owns device, VkCopyImageToImageInfoEXT pCopyImageToMemoryInfo→srcImage.a pointer to a pCopyImageToImageInfo)VkCopyImageToImageInfoEXT structure describing the copy parameters.Copy image data using the host. |
| public static int | vkCopyImageToMemoryEXT(VkDevice
the device which owns device, VkCopyImageToMemoryInfoEXT pCopyImageToMemoryInfo→srcImage.a pointer to a pCopyImageToMemoryInfo)VkCopyImageToMemoryInfoEXT structure describing the copy parameters.Copy image data into host memory. |
| public static int | vkCopyMemoryToImageEXT(VkDevice
the device which owns device, VkCopyMemoryToImageInfoEXT pCopyMemoryToImageInfo→dstImage.a pointer to a pCopyMemoryToImageInfo)VkCopyMemoryToImageInfoEXT structure describing the copy parameters.Copy data from host memory into an image. |
| public static void | vkGetImageSubresourceLayout2EXT(VkDevice
the logical device that owns the image. device, long the image whose layout is being queried. image, VkImageSubresource2KHR a pointer to a pSubresource, VkSubresourceLayout2KHR VkImageSubresource2KHR structure selecting a specific image for the image subresource.a pointer to a pLayout)VkSubresourceLayout2KHR structure in which the layout is returned. |
| public static int | vkTransitionImageLayoutEXT(VkDevice
the device which owns device, VkHostImageLayoutTransitionInfoEXT.pTransitions[i].image.a pointer to an array of pTransitionsVkHostImageLayoutTransitionInfoEXT structures specifying the image and subresource ranges within them to transition.Perform an image layout transition on the host. |
| VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME The extension name. | |
| VK_EXT_HOST_IMAGE_COPY_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_EXT_HOST_IMAGE_COPY_SPEC_VERSION The extension specification version. | |
| VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT | back to summary |
|---|---|
| public static final long VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT Extends | |
| VK_HOST_IMAGE_COPY_MEMCPY_EXT | back to summary |
|---|---|
| public static final int VK_HOST_IMAGE_COPY_MEMCPY_EXT VkHostImageCopyFlagBitsEXT - Bitmask specifying additional copy parameters Description
| |
| VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT | back to summary |
|---|---|
| public static final int VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT Extends | |
| VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT Extends Enum values:
| |
| VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT Extends Enum values:
| |
| EXTHostImageCopy | back to summary |
|---|---|
| protected EXTHostImageCopy() | |
| nvkCopyImageToImageEXT | back to summary |
|---|---|
| public static int nvkCopyImageToImageEXT(VkDevice device, long pCopyImageToImageInfo) Unsafe version of: | |
| nvkCopyImageToMemoryEXT | back to summary |
|---|---|
| public static int nvkCopyImageToMemoryEXT(VkDevice device, long pCopyImageToMemoryInfo) Unsafe version of: | |
| nvkCopyMemoryToImageEXT | back to summary |
|---|---|
| public static int nvkCopyMemoryToImageEXT(VkDevice device, long pCopyMemoryToImageInfo) Unsafe version of: | |
| nvkGetImageSubresourceLayout2EXT | back to summary |
|---|---|
| public static void nvkGetImageSubresourceLayout2EXT(VkDevice device, long image, long pSubresource, long pLayout) Unsafe version of: | |
| nvkTransitionImageLayoutEXT | back to summary |
|---|---|
| public static int nvkTransitionImageLayoutEXT(VkDevice device, int transitionCount, long pTransitions) Unsafe version of:
| |
| vkCopyImageToImageEXT | back to summary |
|---|---|
| public static int vkCopyImageToImageEXT(VkDevice device, VkCopyImageToImageInfoEXT pCopyImageToImageInfo) Copy image data using the host. C SpecificationTo copy data from an image object to another image object using the host, call:
DescriptionThis command is functionally similar to Valid Usage
Valid Usage (Implicit)
Return Codes
See Also
| |
| vkCopyImageToMemoryEXT | back to summary |
|---|---|
| public static int vkCopyImageToMemoryEXT(VkDevice device, VkCopyImageToMemoryInfoEXT pCopyImageToMemoryInfo) Copy image data into host memory. C SpecificationTo copy data from an image object to host memory, call:
DescriptionThis command is functionally similar to Valid Usage
Valid Usage (Implicit)
Return Codes
See Also
| |
| vkCopyMemoryToImageEXT | back to summary |
|---|---|
| public static int vkCopyMemoryToImageEXT(VkDevice device, VkCopyMemoryToImageInfoEXT pCopyMemoryToImageInfo) Copy data from host memory into an image. C SpecificationTo copy data from host memory to an image object, call:
DescriptionThis command is functionally similar to Valid Usage
Valid Usage (Implicit)
Return Codes
See Also
| |
| vkGetImageSubresourceLayout2EXT | back to summary |
|---|---|
| public static void vkGetImageSubresourceLayout2EXT(VkDevice device, long image, VkImageSubresource2KHR pSubresource, VkSubresourceLayout2KHR pLayout) See
| |
| vkTransitionImageLayoutEXT | back to summary |
|---|---|
| public static int vkTransitionImageLayoutEXT(VkDevice device, VkHostImageLayoutTransitionInfoEXT. Perform an image layout transition on the host. C SpecificationTo perform an image layout transition on the host, call:
Valid Usage (Implicit)
Return Codes
See Also
| |