Example #1
0
        internal SurfaceKhr(Instance parent, WaylandSurfaceCreateInfoKhr *createInfo, ref AllocationCallbacks?allocator)
        {
            Parent    = parent;
            Allocator = allocator;

            long handle;

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

            VulkanException.ThrowForInvalidResult(result);
            Handle = handle;
        }
Example #2
0
 internal static unsafe extern Result vkCreateWaylandSurfaceKHR(IntPtr instance, WaylandSurfaceCreateInfoKhr *pCreateInfo, Vulkan.Interop.AllocationCallbacks *pAllocator, UInt64 *pSurface);