namespace Brutal.VulkanApi { /// /// VkSparseMemoryBind - Structure specifying a sparse memory bind operation /// /// /// /// The VkSparseMemoryBind structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkSparseMemoryBind { /// VkDeviceSize resourceOffset; /// VkDeviceSize size; /// VkDeviceMemory memory; /// VkDeviceSize memoryOffset; /// VkSparseMemoryBindFlags flags; /// } VkSparseMemoryBind; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] public partial struct VkSparseMemoryBind() { /// /// ResourceOffset is the offset into the resource. /// [FieldOffset(0)] public ByteSize64 ResourceOffset; /// /// Size is the size of the memory region to be bound. /// [FieldOffset(8)] public ByteSize64 Size; /// /// Memory is the VkDeviceMemory object that the range of the resource is bound to. If memory is VK_NULL_HANDLE, the range is unbound. /// [FieldOffset(16)] public VkDeviceMemory Memory; /// /// MemoryOffset is the offset into the VkDeviceMemory object to bind the resource range to. If memory is VK_NULL_HANDLE, this value is ignored. /// [FieldOffset(24)] public ByteSize64 MemoryOffset; /// /// Flags is a bitmask of VkSparseMemoryBindFlags specifying usage of the binding operation. /// [FieldOffset(32)] public VkSparseMemoryBindFlags Flags; } }