mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
13
brutal.vulkan/Brutal.Vulkan/Manual/Classes/VkAllocator.cs
Normal file
13
brutal.vulkan/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