Class EXTHostImageCopy
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.
- Name String
VK_EXT_host_image_copy- Extension Type
- Device extension
- Registered Extension Number
- 271
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_get_physical_device_properties2or Version 1.1 andVK_KHR_copy_commands2andVK_KHR_format_feature_flags2or Version 1.3- Contact
- Shahbaz Youssefi syoussefi
- Extension Proposal
- VK_EXT_host_image_copy
Other Extension Metadata
- Last Modified Date
- 2023-04-26
- Contributors
- Shahbaz Youssefi, Google
- Faith Ekstrand, Collabora
- Hans-Kristian Arntzen, Valve
- Piers Daniell, NVIDIA
- Jan-Harald Fredriksen, Arm
- James Fitzpatrick, Imagination
- Daniel Story, Nintendo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final longExtendsVkFormatFeatureFlagBits2.static final intVkHostImageCopyFlagBitsEXT - Bitmask specifying additional copy parametersstatic final intExtendsVkImageUsageFlagBits.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkCopyImageToImageEXT(org.lwjgl.vulkan.VkDevice device, long pCopyImageToImageInfo) Unsafe version of:CopyImageToImageEXTstatic intnvkCopyImageToMemoryEXT(org.lwjgl.vulkan.VkDevice device, long pCopyImageToMemoryInfo) Unsafe version of:CopyImageToMemoryEXTstatic intnvkCopyMemoryToImageEXT(org.lwjgl.vulkan.VkDevice device, long pCopyMemoryToImageInfo) Unsafe version of:CopyMemoryToImageEXTstatic voidnvkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, long pSubresource, long pLayout) Unsafe version of:GetImageSubresourceLayout2EXTstatic intnvkTransitionImageLayoutEXT(org.lwjgl.vulkan.VkDevice device, int transitionCount, long pTransitions) Unsafe version of:TransitionImageLayoutEXTstatic intvkCopyImageToImageEXT(org.lwjgl.vulkan.VkDevice device, VkCopyImageToImageInfoEXT pCopyImageToImageInfo) Copy image data using the host.static intvkCopyImageToMemoryEXT(org.lwjgl.vulkan.VkDevice device, VkCopyImageToMemoryInfoEXT pCopyImageToMemoryInfo) Copy image data into host memory.static intvkCopyMemoryToImageEXT(org.lwjgl.vulkan.VkDevice device, VkCopyMemoryToImageInfoEXT pCopyMemoryToImageInfo) Copy data from host memory into an image.static voidvkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, VkImageSubresource2KHR pSubresource, VkSubresourceLayout2KHR pLayout) static intvkTransitionImageLayoutEXT(org.lwjgl.vulkan.VkDevice device, VkHostImageLayoutTransitionInfoEXT.Buffer pTransitions) Perform an image layout transition on the host.
-
Field Details
-
VK_EXT_HOST_IMAGE_COPY_SPEC_VERSION
public static final int VK_EXT_HOST_IMAGE_COPY_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT
public static final int VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT
public static final int VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT
public static final int VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT
public static final int VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT
public static final int VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
public static final int VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXTExtendsVkStructureType.Enum values:
STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXTSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXTSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXTSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXTSTRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXTSTRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXTSTRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXTSTRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT
- See Also:
-
VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT
public static final int VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXTExtendsVkImageUsageFlagBits.- See Also:
-
VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT
public static final long VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXTExtendsVkFormatFeatureFlagBits2.- See Also:
-
VK_HOST_IMAGE_COPY_MEMCPY_EXT
public static final int VK_HOST_IMAGE_COPY_MEMCPY_EXTVkHostImageCopyFlagBitsEXT - Bitmask specifying additional copy parametersDescription
HOST_IMAGE_COPY_MEMCPY_EXTspecifies that no memory layout swizzling is to be applied during data copy. For copies between memory and images, this flag indicates that image data in host memory is swizzled in exactly the same way as the image data on the device. Using this flag indicates that the implementations may use a simple memory copy to transfer the data between the host memory and the device memory. The format of the swizzled data in host memory is platform dependent and is not defined in this specification.
- See Also:
-
-
Method Details
-
nvkCopyMemoryToImageEXT
public static int nvkCopyMemoryToImageEXT(org.lwjgl.vulkan.VkDevice device, long pCopyMemoryToImageInfo) Unsafe version of:CopyMemoryToImageEXT -
vkCopyMemoryToImageEXT
public static int vkCopyMemoryToImageEXT(org.lwjgl.vulkan.VkDevice device, VkCopyMemoryToImageInfoEXT pCopyMemoryToImageInfo) Copy data from host memory into an image.C Specification
To copy data from host memory to an image object, call:
VkResult vkCopyMemoryToImageEXT( VkDevice device, const VkCopyMemoryToImageInfoEXT* pCopyMemoryToImageInfo);Description
This command is functionally similar to
CmdCopyBufferToImage2, except it is executed on the host and reads from host memory instead of a buffer. The memory ofpCopyMemoryToImageInfo→dstImageis accessed by the host as if coherent.Note
Because queue submissions automatically make host memory visible to the device, there would not be a need for a memory barrier before using the results of this copy operation on the device.
Valid Usage
- The
hostImageCopyfeature must be enabled
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepCopyMemoryToImageInfomust be a valid pointer to a validVkCopyMemoryToImageInfoEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the device which ownspCopyMemoryToImageInfo→dstImage.pCopyMemoryToImageInfo- a pointer to aVkCopyMemoryToImageInfoEXTstructure describing the copy parameters.
- The
-
nvkCopyImageToMemoryEXT
public static int nvkCopyImageToMemoryEXT(org.lwjgl.vulkan.VkDevice device, long pCopyImageToMemoryInfo) Unsafe version of:CopyImageToMemoryEXT -
vkCopyImageToMemoryEXT
public static int vkCopyImageToMemoryEXT(org.lwjgl.vulkan.VkDevice device, VkCopyImageToMemoryInfoEXT pCopyImageToMemoryInfo) Copy image data into host memory.C Specification
To copy data from an image object to host memory, call:
VkResult vkCopyImageToMemoryEXT( VkDevice device, const VkCopyImageToMemoryInfoEXT* pCopyImageToMemoryInfo);Description
This command is functionally similar to
CmdCopyImageToBuffer2, except it is executed on the host and writes to host memory instead of a buffer. The memory ofpCopyImageToMemoryInfo→srcImageis accessed by the host as if coherent.Note
If the device has written to the image memory, it is not automatically made available to the host. Before this copy command can be called, a memory barrier for this image must have been issued on the device with the second synchronization scope including
PIPELINE_STAGE_HOST_BITandACCESS_HOST_READ_BIT.Valid Usage
- The
hostImageCopyfeature must be enabled
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepCopyImageToMemoryInfomust be a valid pointer to a validVkCopyImageToMemoryInfoEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the device which ownspCopyImageToMemoryInfo→srcImage.pCopyImageToMemoryInfo- a pointer to aVkCopyImageToMemoryInfoEXTstructure describing the copy parameters.
- The
-
nvkCopyImageToImageEXT
public static int nvkCopyImageToImageEXT(org.lwjgl.vulkan.VkDevice device, long pCopyImageToImageInfo) Unsafe version of:CopyImageToImageEXT -
vkCopyImageToImageEXT
public static int vkCopyImageToImageEXT(org.lwjgl.vulkan.VkDevice device, VkCopyImageToImageInfoEXT pCopyImageToImageInfo) Copy image data using the host.C Specification
To copy data from an image object to another image object using the host, call:
VkResult vkCopyImageToImageEXT( VkDevice device, const VkCopyImageToImageInfoEXT* pCopyImageToImageInfo);Description
This command is functionally similar to
CmdCopyImage2, except it is executed on the host. The memory ofpCopyImageToImageInfo→srcImageandpCopyImageToImageInfo→dstImageis accessed by the host as if coherent.Note
If the device has written to the memory of
pCopyImageToImageInfo→srcImage, it is not automatically made available to the host. Before this copy command can be called, a memory barrier for this image must have been issued on the device with the second synchronization scope includingPIPELINE_STAGE_HOST_BITandACCESS_HOST_READ_BIT.Because queue submissions automatically make host memory visible to the device, there would not be a need for a memory barrier before using the results of this copy operation in
pCopyMemoryToImageInfo→dstImageon the device.Valid Usage
- The
hostImageCopyfeature must be enabled
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepCopyImageToImageInfomust be a valid pointer to a validVkCopyImageToImageInfoEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the device which ownspCopyImageToImageInfo→srcImageandpCopyImageToImageInfo→dstImage.pCopyImageToImageInfo- a pointer to aVkCopyImageToImageInfoEXTstructure describing the copy parameters.
- The
-
nvkTransitionImageLayoutEXT
public static int nvkTransitionImageLayoutEXT(org.lwjgl.vulkan.VkDevice device, int transitionCount, long pTransitions) Unsafe version of:TransitionImageLayoutEXT- Parameters:
transitionCount- the number of image layout transitions to perform.
-
vkTransitionImageLayoutEXT
public static int vkTransitionImageLayoutEXT(org.lwjgl.vulkan.VkDevice device, VkHostImageLayoutTransitionInfoEXT.Buffer pTransitions) Perform an image layout transition on the host.C Specification
To perform an image layout transition on the host, call:
VkResult vkTransitionImageLayoutEXT( VkDevice device, uint32_t transitionCount, const VkHostImageLayoutTransitionInfoEXT* pTransitions);Valid Usage (Implicit)
devicemust be a validVkDevicehandlepTransitionsmust be a valid pointer to an array oftransitionCountvalidVkHostImageLayoutTransitionInfoEXTstructurestransitionCountmust be greater than 0
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- the device which ownspTransitions[i].image.pTransitions- a pointer to an array ofVkHostImageLayoutTransitionInfoEXTstructures specifying the image and subresource ranges within them to transition.
-
nvkGetImageSubresourceLayout2EXT
public static void nvkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, long pSubresource, long pLayout) Unsafe version of:GetImageSubresourceLayout2EXT -
vkGetImageSubresourceLayout2EXT
public static void vkGetImageSubresourceLayout2EXT(org.lwjgl.vulkan.VkDevice device, long image, VkImageSubresource2KHR pSubresource, VkSubresourceLayout2KHR pLayout) - Parameters:
device- the logical device that owns the image.image- the image whose layout is being queried.pSubresource- a pointer to aVkImageSubresource2KHRstructure selecting a specific image for the image subresource.pLayout- a pointer to aVkSubresourceLayout2KHRstructure in which the layout is returned.
-