Class VkSubresourceLayout

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


    public class VkSubresourceLayout
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about the layout of an image subresource (mipLevel/arrayLayer) of an image created with linear tiling.

    Member documentation

    • offset – the byte offset from the start of the image where the image subresource begins
    • size – the size in bytes of the image subresource
    • rowPitch – the number of bytes between each row of texels in an image
    • arrayPitch – the number of bytes between each array layer of an image
    • depthPitch – the number of bytes between each slice of 3D image

    Layout

    struct VkSubresourceLayout {
        VkDeviceSize offset;
        VkDeviceSize size;
        VkDeviceSize rowPitch;
        VkDeviceSize arrayPitch;
        VkDeviceSize depthPitch;
    }