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