Edit

SKGraphiteVkBackendContext Class

Definition

Supplies the Vulkan instance, devices, queue, and function loader used to create a Vulkan-backed SKGraphiteContext.

public class SKGraphiteVkBackendContext : IDisposable
Inheritance
SKGraphiteVkBackendContext
Implements

Remarks

Populate the Vulkan handles and the GetProcedureAddress loader, then pass this object to CreateVulkan(SKGraphiteVkBackendContext). Ownership of the delegate that keeps the function loader alive is transferred to the context, so you can dispose this object as soon as the context has been created.

This type implements IDisposable.

Constructors

Name Description
SKGraphiteVkBackendContext()

Initializes a new instance of the SKGraphiteVkBackendContext class.

Properties

Name Description
GetProcedureAddress

Gets or sets the delegate that resolves Vulkan function addresses by name.

GraphicsQueueIndex

Gets or sets the index of the Vulkan queue family used for graphics operations.

MaxApiVersion

Gets or sets the maximum Vulkan API version that Skia may use.

ProtectedContext

Gets or sets a value indicating whether the context uses Vulkan protected content.

VkDevice

Gets or sets the handle to the Vulkan logical device.

VkInstance

Gets or sets the handle to the Vulkan instance.

VkPhysicalDevice

Gets or sets the handle to the Vulkan physical device.

VkQueue

Gets or sets the handle to the Vulkan queue.

Methods

Name Description
Dispose()

Releases the resources used by the current instance of the SKGraphiteVkBackendContext class.

Finalize()

Releases the unmanaged resources used by the SKGraphiteVkBackendContext before it is reclaimed by garbage collection.

Applies to