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

CreateAndroidSurface(nint, nint)

Creates a new SwapchainSource for the given Android Surface.

public static SwapchainSource CreateAndroidSurface(nint surfaceHandle, nint jniEnv)

Parameters

surfaceHandle nint

The handle of the Android Surface.

jniEnv nint

The Java Native Interface Environment handle.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Vulkan Swapchain or an OpenGLES GraphicsDevice for the given Android Surface.

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.

CreateUIView(nint)

Creates a new SwapchainSource for the given UIView.

public static SwapchainSource CreateUIView(nint uiView)

Parameters

uiView nint

The UIView's native handle.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Vulkan Swapchain or an OpenGLES GraphicsDevice for the given UIView.

CreateUwp(object, float)

Creates a new SwapchainSource for a UWP SwapChain panel.

public static SwapchainSource CreateUwp(object swapChainPanel, float logicalDpi)

Parameters

swapChainPanel object

A COM object which must implement the ISwapChainPanelNative or ISwapChainBackgroundPanelNative interface. Generally, this should be a SwapChainPanel or SwapChainBackgroundPanel contained in your application window.

logicalDpi float

The logical DPI of the swapchain panel.

Returns

SwapchainSource

A new SwapchainSource which can be used to create a Swapchain for the given UWP panel.

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.