namespace Brutal.VulkanApi.Abstractions; /// /// Base interface for a Vulkan allocator /// public interface IAllocator { /// /// Get the Vulkan device this allocator is associated with /// /// Vulkan device handle Device GetDevice(); VkAllocator? VkAllocator { get; } /// /// Safely maps memory (allocated by this allocator) to a pointer. /// /// Allocation info for memory /// Pointer to mapped memory Ptr MapMemory(in AllocationMapInfo allocationMapInfo); /// /// Safely unmaps memory (allocated by this allocator) from a pointer /// /// Allocation info for memory void UnmapMemory(in AllocationMapInfo allocationMapInfo); }