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
surfaceHandlenintThe handle of the Android Surface.
jniEnvnintThe 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
nsViewnintA 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
nsWindownintA 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
uiViewnintThe 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
swapChainPanelobjectA COM object which must implement the ISwapChainPanelNative or ISwapChainBackgroundPanelNative interface. Generally, this should be a SwapChainPanel or SwapChainBackgroundPanel contained in your application window.
logicalDpifloatThe 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
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
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
Returns
- SwapchainSource
A new SwapchainSource which can be used to create a Swapchain for the given Xlib window.