Table of Contents

Class SwapchainSource

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A platform-specific object representing a renderable surface. A SwapchainSource can be created with one of several static factory methods. A SwapchainSource is used to describe a Swapchain (see SwapchainDescription).

public abstract class SwapchainSource
Inheritance
SwapchainSource
Inherited Members

Methods

CreateNSView(nint)

Creates a new SwapchainSource for the given NSView.

public static SwapchainSource CreateNSView(nint nsView)

Parameters

nsView nint

A pointer to an NSView.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Vulkan Swapchain for the given NSView.

CreateNSWindow(nint)

Creates a new SwapchainSource for the given NSWindow.

public static SwapchainSource CreateNSWindow(nint nsWindow)

Parameters

nsWindow nint

A pointer to an NSWindow.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Vulkan Swapchain for the given NSWindow.

CreateWayland(nint, nint)

Creates a new SwapchainSource from the given Wayland information.

public static SwapchainSource CreateWayland(nint display, nint surface)

Parameters

display nint

The Wayland display proxy.

surface nint

The Wayland surface proxy to map.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Swapchain for the given Wayland surface.

CreateWin32(nint, nint)

Creates a new SwapchainSource for a Win32 window.

public static SwapchainSource CreateWin32(nint hwnd, nint hinstance)

Parameters

hwnd nint

The Win32 window handle.

hinstance nint

The Win32 instance handle.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Swapchain for the given Win32 window.

CreateXlib(nint, nint)

Creates a new SwapchainSource from the given Xlib information.

public static SwapchainSource CreateXlib(nint display, nint window)

Parameters

display nint

An Xlib Display.

window nint

An Xlib Window.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Swapchain for the given Xlib window.