mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
13 lines
343 B
C#
13 lines
343 B
C#
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();
|
|
}
|
|
}
|