Table of Contents

Class VkSurfaceSource

Namespace
NeoVeldrid.Vk
Assembly
NeoVeldrid.dll

An object which can be used to create a VkSurfaceKHR.

public abstract class VkSurfaceSource
Inheritance
VkSurfaceSource
Inherited Members

Methods

CreateSurface(Instance)

Creates a new VkSurfaceKHR attached to this source.

public abstract SurfaceKHR CreateSurface(Instance instance)

Parameters

instance Instance

The VkInstance to use.

Returns

SurfaceKHR

A new VkSurfaceKHR.

CreateWin32(nint, nint)

Creates a new VkSurfaceSource from the given Win32 instance and window handle.

public static VkSurfaceSource CreateWin32(nint hinstance, nint hwnd)

Parameters

hinstance nint

The Win32 instance handle.

hwnd nint

The Win32 window handle.

Returns

VkSurfaceSource

A new VkSurfaceSource.

CreateXlib(nint, nint)

Creates a new VkSurfaceSource from the given Xlib information.

public static VkSurfaceSource CreateXlib(nint display, nint window)

Parameters

display nint

A pointer to the Xlib Display.

window nint

An Xlib window handle.

Returns

VkSurfaceSource

A new VkSurfaceSource.