Пример #1
0
        internal SurfaceKhr(Instance parent, Win32SurfaceCreateInfoKhr *createInfo, ref AllocationCallbacks?allocator)
        {
            Parent    = parent;
            Allocator = allocator;

            long handle;

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

            VulkanException.ThrowForInvalidResult(result);
            Handle = handle;
        }
Пример #2
0
 internal static unsafe extern Result vkCreateWin32SurfaceKHR(IntPtr instance, Win32SurfaceCreateInfoKhr *pCreateInfo, Vulkan.Interop.AllocationCallbacks *pAllocator, UInt64 *pSurface);
Пример #3
0
 public static extern unsafe Result vkCreateWin32SurfaceKHR(IntPtr instance, Win32SurfaceCreateInfoKhr *pCreateInfo, VulkanSharp.Interop.AllocationCallbacks *pAllocator, ulong *pSurface);