Table of Contents

Class BackendInfoVulkan

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Exposes Vulkan-specific functionality, useful for interoperating with native components which interface directly with Vulkan. Can only be used on Vulkan.

public class BackendInfoVulkan
Inheritance
BackendInfoVulkan
Inherited Members

Properties

AvailableDeviceExtensions

public ReadOnlyCollection<BackendInfoVulkan.ExtensionProperties> AvailableDeviceExtensions { get; }

Property Value

ReadOnlyCollection<BackendInfoVulkan.ExtensionProperties>

AvailableInstanceExtensions

public ReadOnlyCollection<string> AvailableInstanceExtensions { get; }

Property Value

ReadOnlyCollection<string>

AvailableInstanceLayers

public ReadOnlyCollection<string> AvailableInstanceLayers { get; }

Property Value

ReadOnlyCollection<string>

Device

Gets the underlying VkDevice used by the GraphicsDevice.

public nint Device { get; }

Property Value

nint

DriverInfo

Gets the driver information of the device. May be null.

public string DriverInfo { get; }

Property Value

string

DriverName

Gets the driver name of the device. May be null.

public string DriverName { get; }

Property Value

string

GraphicsQueue

Gets the VkQueue which is used by the GraphicsDevice to submit graphics work.

public nint GraphicsQueue { get; }

Property Value

nint

GraphicsQueueFamilyIndex

Gets the queue family index of the graphics VkQueue.

public uint GraphicsQueueFamilyIndex { get; }

Property Value

uint

Instance

Gets the underlying VkInstance used by the GraphicsDevice.

public nint Instance { get; }

Property Value

nint

PhysicalDevice

Gets the underlying VkPhysicalDevice used by the GraphicsDevice.

public nint PhysicalDevice { get; }

Property Value

nint

Methods

GetVkImage(Texture)

Gets the underlying VkImage wrapped by the given NeoVeldrid Texture. This method can not be used on Textures with TextureUsage.Staging.

public ulong GetVkImage(Texture texture)

Parameters

texture Texture

The Texture whose underlying VkImage will be returned.

Returns

ulong

The underlying VkImage for the given Texture.

OverrideImageLayout(Texture, uint)

Overrides the current VkImageLayout tracked by the given Texture. This should be used when a VkImage is created by an external library to inform NeoVeldrid about its initial layout.

public void OverrideImageLayout(Texture texture, uint layout)

Parameters

texture Texture

The Texture whose currently-tracked VkImageLayout will be overridden.

layout uint

The new VkImageLayout value.

TransitionImageLayout(Texture, uint)

Transitions the given Texture's underlying VkImage into a new layout.

public void TransitionImageLayout(Texture texture, uint layout)

Parameters

texture Texture

The Texture whose underlying VkImage will be transitioned.

layout uint

The new VkImageLayout value.