Show / Hide Table of Contents

Class VKLoader

Used to load the Vulkan bindings.

Inheritance
object
VKLoader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Graphics
Assembly: OpenTK.Graphics.dll
Syntax
public static class VKLoader

Methods

GetDeviceProcAddr(VkDevice, string)

Calls GetDeviceProcAddr(VkDevice, byte*).

Declaration
public static nint GetDeviceProcAddr(VkDevice device, string name)
Parameters
Type Name Description
VkDevice device

The device load a function pointer from.

string name

The name of the function to load.

Returns
Type Description
nint

The function pointer, or null.

GetInstanceProcAddress(VkInstance, string)

Gets a function pointer to an instance function using the OpenTK.Graphics.Vulkan.VkInstance provided in instance to load the function.

Declaration
public static nint GetInstanceProcAddress(VkInstance instance, string name)
Parameters
Type Name Description
VkInstance instance

The instance to use when loading function pointers.

string name

The name of the function to load.

Returns
Type Description
nint

The loaded function pointer, or null.

GetInstanceProcAddress(string)

Gets a function pointer to an instance function using the OpenTK.Graphics.Vulkan.VkInstance set in SetInstance(VkInstance) to load the function.

Declaration
public static nint GetInstanceProcAddress(string name)
Parameters
Type Name Description
string name

The name of the instance function to load.

Returns
Type Description
nint

The loaded function pointer, or null.

Init()

Loads the vulkan native libraries and initializes the vulkan loader.

Declaration
public static void Init()
Exceptions
Type Condition
PlatformNotSupportedException

We don't know the path to the vulkan binaries on this platform.

EntryPointNotFoundException

Couldn't load vkGetInstanceProcAddr from the loaded vulkan library.

SetInstance(VkInstance)

Set the OpenTK.Graphics.Vulkan.VkInstance to use to load functions when calling functions directly on OpenTK.Graphics.Vulkan.Vk.

Declaration
public static void SetInstance(VkInstance instance)
Parameters
Type Name Description
VkInstance instance

The OpenTK.Graphics.Vulkan.VkInstance to use to load functions.

See Also
InstanceDispatchTable
DeviceDispatchTable
In this article
Back to top Generated by DocFX