mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Reference in a new issue