Structures
VkImageCopy2
Structure specifying an image copy operation
The VkImageCopy2 structure is defined as:
typedef struct VkImageCopy2 {
VkStructureType sType;
const void* pNext;
VkImageSubresourceLayers srcSubresource;
VkOffset3D srcOffset;
VkImageSubresourceLayers dstSubresource;
VkOffset3D dstOffset;
VkExtent3D extent;
} VkImageCopy2;
pub struct ImageCopy2 {
s_type: vk::StructureType,
p_next: *const c_void,
src_subresource: vk::ImageSubresourceLayers,
src_offset: vk::Offset3D, // Specified in pixels for both compressed and uncompressed images
dst_subresource: vk::ImageSubresourceLayers,
dst_offset: vk::Offset3D, // Specified in pixels for both compressed and uncompressed images
extent: vk::Extent3D, // Specified in pixels for both compressed and uncompressed images
}
typedef VkImageCopy2 VkImageCopy2KHR;
type ImageCopy2KHR = vk::ImageCopy2;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.srcSubresourceanddstSubresourceare VkImageSubresourceLayers structures specifying the image subresources of the images used for the source and destination image data, respectively.srcOffsetanddstOffsetselect the initialx,y, andzoffsets in texels of the sub-regions of the source and destination image data.extentis the size in texels of the image to copy inwidth,heightanddepth.
Valid Usage
VUID-VkImageCopy2-apiVersion-07940
If the VK_KHR_sampler_ycbcr_conversion extension is not enabled,
and VkPhysicalDeviceProperties::apiVersion is less than Vulkan 1.1,
the aspectMask member of srcSubresource and dstSubresource must match
VUID-VkImageCopy2-apiVersion-07941
If the VK_KHR_maintenance1 extension is not enabled,
and VkPhysicalDeviceProperties::apiVersion is less than Vulkan 1.1,
the layerCount member of srcSubresource and dstSubresource must match
VUID-VkImageCopy2-extent-06668
extent.width must not be 0
VUID-VkImageCopy2-extent-06669
extent.height must not be 0
VUID-VkImageCopy2-extent-06670
extent.depth must not be 0
Valid Usage (Implicit)
VUID-VkImageCopy2-sType-sType
sType must be VK_STRUCTURE_TYPE_IMAGE_COPY_2
VUID-VkImageCopy2-pNext-pNext
pNext must be NULL
VUID-VkImageCopy2-srcSubresource-parameter
srcSubresource must be a valid VkImageSubresourceLayers structure
VUID-VkImageCopy2-dstSubresource-parameter
dstSubresource must be a valid VkImageSubresourceLayers structure
Parent
VK_VERSION_1_3Type
Structures