Skip to main content

Class GraphicsFeatureSet

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

Describes high-level rendering features that callers may toggle regardless of the active backend.

public sealed record GraphicsFeatureSet : IEquatable<GraphicsFeatureSet>

Inheritance

objectGraphicsFeatureSet

Implements

IEquatable<GraphicsFeatureSet>

Inherited Members

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

Constructors

GraphicsFeatureSet(bool, bool, bool, bool, bool, long?, bool)

Describes high-level rendering features that callers may toggle regardless of the active backend.

public GraphicsFeatureSet(bool EnableCpuFallback = true, bool EnableMsaa8 = true, bool EnableMsaa16 = false, bool EnableAreaAa = true, bool EnableOpacityLayers = true, long? MaxGpuResourceBytes = null, bool EnableValidationLayers = false)

Parameters

EnableCpuFallback bool

When true, the pipeline is permitted to fall back to a CPU renderer if a GPU context cannot be created.

EnableMsaa8 bool

Enables 8x multi-sample anti-aliasing when the backend supports it.

EnableMsaa16 bool

Enables 16x multi-sample anti-aliasing when the backend supports it.

EnableAreaAa bool

Enables analytical/area anti-aliasing paths.

EnableOpacityLayers bool

Requests opacity save-layers; backends deciding not to support them may ignore the flag.

MaxGpuResourceBytes long?

Upper bound for GPU resource allocations; ignored when not applicable.

EnableValidationLayers bool

Enables extra backend validation (e.g. WebGPU validation layers) when available.

Properties

EnableAreaAa

Enables analytical/area anti-aliasing paths.

public bool EnableAreaAa { get; init; }

Property Value

bool

EnableCpuFallback

When true, the pipeline is permitted to fall back to a CPU renderer if a GPU context cannot be created.

public bool EnableCpuFallback { get; init; }

Property Value

bool

EnableMsaa16

Enables 16x multi-sample anti-aliasing when the backend supports it.

public bool EnableMsaa16 { get; init; }

Property Value

bool

EnableMsaa8

Enables 8x multi-sample anti-aliasing when the backend supports it.

public bool EnableMsaa8 { get; init; }

Property Value

bool

EnableOpacityLayers

Requests opacity save-layers; backends deciding not to support them may ignore the flag.

public bool EnableOpacityLayers { get; init; }

Property Value

bool

EnableValidationLayers

Enables extra backend validation (e.g. WebGPU validation layers) when available.

public bool EnableValidationLayers { get; init; }

Property Value

bool

MaxGpuResourceBytes

Upper bound for GPU resource allocations; ignored when not applicable.

public long? MaxGpuResourceBytes { get; init; }

Property Value

long?