コード例 #1
0
        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;
        }
コード例 #2
0
 public static extern unsafe Result vkAllocateMemory(IntPtr device, MemoryAllocateInfo *pAllocateInfo, AllocationCallbacks *pAllocator, ulong *pMemory);
コード例 #3
0
 internal static unsafe extern Result vkAllocateMemory(IntPtr device, MemoryAllocateInfo *pAllocateInfo, AllocationCallbacks *pAllocator, UInt64 *pMemory);
コード例 #4
0
 internal static unsafe extern Result vkAllocateMemory(Device device, MemoryAllocateInfo *AllocateInfo, AllocationCallbacks *Allocator, out IntPtr pMemory);
コード例 #5
0
 internal static unsafe extern Result vkAllocateMemory(IntPtr device, MemoryAllocateInfo *AllocateInfo, IntPtr Allocator, UInt64 *Memory);