Show / Hide Table of Contents

Class VkSurfaceSource

An object which can be used to create a VkSurfaceKHR.

Inheritance
System.Object
VkSurfaceSource
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Veldrid.Vk
Assembly: cs.temp.dll.dll
Syntax
public abstract class VkSurfaceSource

Methods

CreateSurface(VkInstance)

Creates a new VkSurfaceKHR attached to this source.

Declaration
public abstract VkSurfaceKHR CreateSurface(VkInstance instance)
Parameters
Type Name Description
VkInstance instance

The VkInstance to use.

Returns
Type Description
VkSurfaceKHR

A new VkSurfaceKHR.

CreateWin32(IntPtr, IntPtr)

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

Declaration
public static VkSurfaceSource CreateWin32(IntPtr hinstance, IntPtr hwnd)
Parameters
Type Name Description
System.IntPtr hinstance

The Win32 instance handle.

System.IntPtr hwnd

The Win32 window handle.

Returns
Type Description
VkSurfaceSource

A new VkSurfaceSource.

CreateXlib(Display*, Window)

Creates a new VkSurfaceSource from the given Xlib information.

Declaration
public static VkSurfaceSource CreateXlib(Display*display, Window window)
Parameters
Type Name Description
Display* display

A pointer to the Xlib Display.

Window window

An Xlib window.

Returns
Type Description
VkSurfaceSource

A new VkSurfaceSource.

Back to top