internal CommandPool(Device parent, CommandPoolCreateInfo *createInfo, ref AllocationCallbacks?allocator) { Parent = parent; Allocator = allocator; createInfo->Prepare(); long handle; Result result = vkCreateCommandPool(Parent, createInfo, NativeAllocator, &handle); VulkanException.ThrowForInvalidResult(result); Handle = handle; }
public static extern unsafe Result vkCreateCommandPool(IntPtr device, CommandPoolCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, ulong *pCommandPool);
internal static unsafe extern Result vkCreateCommandPool(IntPtr device, CommandPoolCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, UInt64 *pCommandPool);
internal static unsafe extern Result vkCreateCommandPool(Device device, CommandPoolCreateInfo *CreateInfo, AllocationCallbacks *Allocator, out IntPtr pCommandPool);
internal static unsafe extern Result vkCreateCommandPool(IntPtr device, CommandPoolCreateInfo *CreateInfo, IntPtr Allocator, UInt64 *CommandPool);