Class VkImageBlit

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class VkImageBlit
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Specifies an image region to blit.

    Valid Usage
    • srcSubresource must be a valid VkImageSubresourceLayers structure
    • dstSubresource must be a valid VkImageSubresourceLayers structure
    • The aspectMask member of srcSubresource and dstSubresource must match
    • The layerCount member of srcSubresource and dstSubresource must match
    • If either of the calling command's srcImage or dstImage parameters are of VkImageType IMAGE_TYPE_3D, the baseArrayLayer and layerCount members of both srcSubresource and dstSubresource must be 0 and 1, respectively
    • The aspectMask member of srcSubresource must specify aspects present in the calling command's srcImage
    • The aspectMask member of dstSubresource must specify aspects present in the calling command's dstImage
    • srcOffset[0].x and srcOffset[1].x must both be greater than or equal to 0 and less than or equal to the source image subresource width
    • srcOffset[0].y and srcOffset[1].y must both be greater than or equal to 0 and less than or equal to the source image subresource height
    • srcOffset[0].z and srcOffset[1].z must both be greater than or equal to 0 and less than or equal to the source image subresource depth
    • dstOffset[0].x and dstOffset[1].x must both be greater than or equal to 0 and less than or equal to the destination image subresource width
    • dstOffset[0].y and dstOffset[1].y must both be greater than or equal to 0 and less than or equal to the destination image subresource height
    • dstOffset[0].z and dstOffset[1].z must both be greater than or equal to 0 and less than or equal to the destination image subresource depth

    Member documentation

    • srcSubresource – the source image subresource
    • srcOffsets – the source region
    • dstSubresource – the destination image subresource
    • dstOffsets – the destination region

    Layout

    struct VkImageBlit {
        VkImageSubresourceLayers srcSubresource;
        VkOffset3D[2] srcOffsets;
        VkImageSubresourceLayers dstSubresource;
        VkOffset3D[2] dstOffsets;
    }