mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
13
Brutal.Vulkan/Manual/Classes/VkAllocator.cs
Normal file
13
Brutal.Vulkan/Manual/Classes/VkAllocator.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
namespace Brutal.VulkanApi;
|
||||
|
||||
public class VkAllocator(VkAllocationCallbacks callbacks) : IDisposable
|
||||
{
|
||||
PtrOwner<VkAllocationCallbacks> ptr = new(callbacks);
|
||||
|
||||
public static unsafe implicit operator VkAllocationCallbacks*(VkAllocator? allocator) => allocator?.ptr ?? null;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
ptr.Dispose();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue