namespace Brutal.VulkanApi { /// /// VkSubresourceLayout - Structure specifying subresource layout /// /// /// /// Information about the layout of the image subresource is returned in a /// VkSubresourceLayout structure: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkSubresourceLayout { /// VkDeviceSize offset; /// VkDeviceSize size; /// VkDeviceSize rowPitch; /// VkDeviceSize arrayPitch; /// VkDeviceSize depthPitch; /// } VkSubresourceLayout; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] public partial struct VkSubresourceLayout() { /// /// Offset is the byte offset from the start of the image where the image subresource begins. /// [FieldOffset(0)] public ByteSize64 Offset; /// /// Size is the size in bytes of the image subresource. size includes any extra memory that is required based on rowPitch. /// [FieldOffset(8)] public ByteSize64 Size; /// /// RowPitch describes the number of bytes between each row of texels in an image. /// [FieldOffset(16)] public ByteSize64 RowPitch; /// /// ArrayPitch describes the number of bytes between each array layer of an image. /// [FieldOffset(24)] public ByteSize64 ArrayPitch; /// /// DepthPitch describes the number of bytes between each slice of 3D image. /// [FieldOffset(32)] public ByteSize64 DepthPitch; } }