namespace Brutal.VulkanApi { /// /// VkSparseImageMemoryRequirements - Structure specifying sparse image memory requirements /// /// /// /// The VkSparseImageMemoryRequirements structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkSparseImageMemoryRequirements { /// VkSparseImageFormatProperties formatProperties; /// uint32_t imageMipTailFirstLod; /// VkDeviceSize imageMipTailSize; /// VkDeviceSize imageMipTailOffset; /// VkDeviceSize imageMipTailStride; /// } VkSparseImageMemoryRequirements; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public partial struct VkSparseImageMemoryRequirements() { /// /// FormatProperties is a VkSparseImageFormatProperties structure specifying properties of the image format. /// [FieldOffset(0)] public VkSparseImageFormatProperties FormatProperties; /// /// ImageMipTailFirstLod is the first mip level at which image subresources are included in the mip tail region. /// [FieldOffset(20)] public int ImageMipTailFirstLod; /// /// ImageMipTailSize is the memory size (in bytes) of the mip tail region. If formatProperties.flags contains VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT, this is the size of the whole mip tail, otherwise this is the size of the mip tail of a single array layer. This value is guaranteed to be a multiple of the sparse block size in bytes. /// [FieldOffset(24)] public ByteSize64 ImageMipTailSize; /// /// ImageMipTailOffset is the opaque memory offset used with VkSparseImageOpaqueMemoryBindInfo to bind the mip tail region(s). /// [FieldOffset(32)] public ByteSize64 ImageMipTailOffset; /// /// ImageMipTailStride is the offset stride between each array-layer's mip tail, if formatProperties.flags does not contain VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT (otherwise the value is undefined:). /// [FieldOffset(40)] public ByteSize64 ImageMipTailStride; } }