internal SurfaceKhr(Instance parent, XlibSurfaceCreateInfoKhr *createInfo, ref AllocationCallbacks?allocator) { Parent = parent; Allocator = allocator; long handle; createInfo->Prepare(); Result result = vkCreateXlibSurfaceKHR(Parent, createInfo, NativeAllocator, &handle); VulkanException.ThrowForInvalidResult(result); Handle = handle; }
internal static unsafe extern Result vkCreateXlibSurfaceKHR(IntPtr instance, XlibSurfaceCreateInfoKhr *pCreateInfo, Vulkan.Interop.AllocationCallbacks *pAllocator, UInt64 *pSurface);