Class BackendInfoVulkan
Exposes Vulkan-specific functionality, useful for interoperating with native components which interface directly with Vulkan. Can only be used on a GraphicsDevice whose GraphicsBackend is Vulkan.
Inheritance
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public class BackendInfoVulkan
Properties
Device
Gets the underlying VkDevice used by the GraphicsDevice.
Declaration
public IntPtr Device { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
GraphicsQueue
Gets the VkQueue which is used by the GraphicsDevice to submit graphics work.
Declaration
public IntPtr GraphicsQueue { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
GraphicsQueueFamilyIndex
Gets the queue family index of the graphics VkQueue.
Declaration
public uint GraphicsQueueFamilyIndex { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Instance
Gets the underlying VkInstance used by the GraphicsDevice.
Declaration
public IntPtr Instance { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
PhysicalDevice
Gets the underlying VkPhysicalDevice used by the GraphicsDevice.
Declaration
public IntPtr PhysicalDevice { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Methods
GetVkImage(Texture)
Gets the underlying VkImage wrapped by the given Veldrid Texture. This method can not be used on Textures with TextureUsage.Staging.
Declaration
public ulong GetVkImage(Texture texture)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The Texture whose underlying VkImage will be returned. |
Returns
Type | Description |
---|---|
System.UInt64 | The underlying VkImage for the given Texture. |
OverrideImageLayout(Texture, UInt32)
Overrides the current VkImageLayout tracked by the given Texture. This should be used when a VkImage is created by an external library to inform Veldrid about its initial layout.
Declaration
public void OverrideImageLayout(Texture texture, uint layout)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The Texture whose currently-tracked VkImageLayout will be overridden. |
System.UInt32 | layout | The new VkImageLayout value. |
TransitionImageLayout(Texture, UInt32)
Transitions the given Texture's underlying VkImage into a new layout.
Declaration
public void TransitionImageLayout(Texture texture, uint layout)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The Texture whose underlying VkImage will be transitioned. |
System.UInt32 | layout | The new VkImageLayout value. |