Skip to main content

Class GraphicsDeviceOptions

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

Immutable options describing how a rendering device should be created.

public sealed record GraphicsDeviceOptions : IEquatable<GraphicsDeviceOptions>

Inheritance

objectGraphicsDeviceOptions

Implements

IEquatable<GraphicsDeviceOptions>

Inherited Members

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

Constructors

GraphicsDeviceOptions(GraphicsBackendKind, GraphicsFeatureSet, GraphicsPresentationOptions, object?)

Immutable options describing how a rendering device should be created.

public GraphicsDeviceOptions(GraphicsBackendKind Backend, GraphicsFeatureSet Features, GraphicsPresentationOptions Presentation, object? BackendOptions = null)

Parameters

Backend GraphicsBackendKind

Target backend for the device.

Features GraphicsFeatureSet

Feature toggles to enable during initialization.

Presentation GraphicsPresentationOptions

Presentation preferences for swapchain-backed surfaces.

BackendOptions object?

Optional backend-specific configuration payload.

Properties

Backend

Target backend for the device.

public GraphicsBackendKind Backend { get; init; }

Property Value

GraphicsBackendKind

BackendOptions

Optional backend-specific configuration payload.

public object? BackendOptions { get; init; }

Property Value

object?

Features

Feature toggles to enable during initialization.

public GraphicsFeatureSet Features { get; init; }

Property Value

GraphicsFeatureSet

Presentation

Presentation preferences for swapchain-backed surfaces.

public GraphicsPresentationOptions Presentation { get; init; }

Property Value

GraphicsPresentationOptions

Methods

CreateDefault(GraphicsBackendKind)

Creates options with default features and presentation for the specified backend.

public static GraphicsDeviceOptions CreateDefault(GraphicsBackendKind backend)

Parameters

backend GraphicsBackendKind

Returns

GraphicsDeviceOptions