internal DeviceMemory(Device parent, MemoryAllocateInfo *allocateInfo, ref AllocationCallbacks?allocator) { Parent = parent; Allocator = allocator; long handle; allocateInfo->Prepare(); Result result = vkAllocateMemory(parent, allocateInfo, NativeAllocator, &handle); VulkanException.ThrowForInvalidResult(result); Handle = handle; }
public static extern unsafe Result vkAllocateMemory(IntPtr device, MemoryAllocateInfo *pAllocateInfo, AllocationCallbacks *pAllocator, ulong *pMemory);
internal static unsafe extern Result vkAllocateMemory(IntPtr device, MemoryAllocateInfo *pAllocateInfo, AllocationCallbacks *pAllocator, UInt64 *pMemory);
internal static unsafe extern Result vkAllocateMemory(Device device, MemoryAllocateInfo *AllocateInfo, AllocationCallbacks *Allocator, out IntPtr pMemory);
internal static unsafe extern Result vkAllocateMemory(IntPtr device, MemoryAllocateInfo *AllocateInfo, IntPtr Allocator, UInt64 *Memory);