SOURCE DUMP v1

This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit fb20299e9d

View file

@ -0,0 +1,28 @@
namespace Brutal.VulkanApi.Abstractions;
/// <summary>
/// Base interface for a Vulkan allocator
/// </summary>
public interface IAllocator
{
/// <summary>
/// Get the Vulkan device this allocator is associated with
/// </summary>
/// <returns>Vulkan device handle</returns>
Device GetDevice();
VkAllocator? VkAllocator { get; }
/// <summary>
/// Safely maps memory (allocated by this allocator) to a pointer.
/// </summary>
/// <param name="allocationMapInfo">Allocation info for memory</param>
/// <returns>Pointer to mapped memory</returns>
Ptr MapMemory(in AllocationMapInfo allocationMapInfo);
/// <summary>
/// Safely unmaps memory (allocated by this allocator) from a pointer
/// </summary>
/// <param name="allocationMapInfo">Allocation info for memory</param>
void UnmapMemory(in AllocationMapInfo allocationMapInfo);
}