Ejemplo n.º 1
0
        internal SurfaceKhr(Instance parent, XcbSurfaceCreateInfoKhr *createInfo, ref AllocationCallbacks?allocator)
        {
            Parent    = parent;
            Allocator = allocator;

            long handle;

            createInfo->Prepare();
            Result result = vkCreateXcbSurfaceKHR(Parent, createInfo, NativeAllocator, &handle);

            VulkanException.ThrowForInvalidResult(result);
            Handle = handle;
        }
Ejemplo n.º 2
0
 internal static unsafe extern Result vkCreateXcbSurfaceKHR(IntPtr instance, XcbSurfaceCreateInfoKhr *pCreateInfo, Vulkan.Interop.AllocationCallbacks *pAllocator, UInt64 *pSurface);