예제 #1
0
        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;
        }
예제 #2
0
 public static extern unsafe Result vkCreateCommandPool(IntPtr device, CommandPoolCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, ulong *pCommandPool);
예제 #3
0
 internal static unsafe extern Result vkCreateCommandPool(IntPtr device, CommandPoolCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, UInt64 *pCommandPool);
예제 #4
0
 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);