Skip to main content

Class WgpuGraphicsDeviceProvider

Namespace: VelloSharp.Avalonia.Core.Device
Assembly: VelloSharp.Avalonia.Core.dll

Provides cached access to Vello's WebGPU renderer stack.

public sealed class WgpuGraphicsDeviceProvider : IGraphicsDeviceProvider, IDisposable

Inheritance

objectWgpuGraphicsDeviceProvider

Implements

IGraphicsDeviceProvider, IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

WgpuGraphicsDeviceProvider(Func<GraphicsDeviceOptions, RendererOptions>?)

public WgpuGraphicsDeviceProvider(Func<GraphicsDeviceOptions, RendererOptions>? optionsResolver = null)

Parameters

optionsResolver Func<GraphicsDeviceOptions, RendererOptions>?

Methods

Acquire(GraphicsDeviceOptions)

Acquires a device for the supplied options. Callers must dispose the returned lease.

public GraphicsDeviceLease Acquire(GraphicsDeviceOptions options)

Parameters

options GraphicsDeviceOptions

Returns

GraphicsDeviceLease

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()