namespace Brutal.VulkanApi { /// /// VkSparseImageMemoryBind - Structure specifying sparse image memory bind /// /// /// /// The VkSparseImageMemoryBind structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkSparseImageMemoryBind { /// VkImageSubresource subresource; /// VkOffset3D offset; /// VkExtent3D extent; /// VkDeviceMemory memory; /// VkDeviceSize memoryOffset; /// VkSparseMemoryBindFlags flags; /// } VkSparseImageMemoryBind; /// /// [StructLayout(LayoutKind.Explicit, Size = 64)] public partial struct VkSparseImageMemoryBind() { /// /// Subresource is the image aspect and region of interest in the image. /// [FieldOffset(0)] public VkImageSubresource Subresource; /// /// Offset are the coordinates of the first texel within the image subresource to bind. /// [FieldOffset(12)] public VkOffset3D Offset; /// /// Extent is the size in texels of the region within the image subresource to bind. The extent must be a multiple of the sparse image block dimensions, except when binding sparse image blocks along the edge of an image subresource it can instead be such that any coordinate of offset {plus} extent equals the corresponding dimensions of the image subresource. /// [FieldOffset(24)] public VkExtent3D Extent; /// /// Memory is the VkDeviceMemory object that the sparse image blocks of the image are bound to. If memory is VK_NULL_HANDLE, the sparse image blocks are unbound. /// [FieldOffset(40)] public VkDeviceMemory Memory; /// /// MemoryOffset is an offset into VkDeviceMemory object. If memory is VK_NULL_HANDLE, this value is ignored. /// [FieldOffset(48)] public ByteSize64 MemoryOffset; /// /// Flags are sparse memory binding flags. /// [FieldOffset(56)] public VkSparseMemoryBindFlags Flags; } }