Skip to main content

Class SkiaSharpLeaseOptions

Namespace: Avalonia.Skia
Assembly: VelloSharp.Avalonia.Vello.dll

Provides opt-in helpers for controlling how renders.

public static class SkiaSharpLeaseOptions

Inheritance​

object ← SkiaSharpLeaseOptions

Inherited Members​

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

Methods​

EnableGpuInteropByDefault()​

Enables GPU interop for all subsequent Skia leases until the returned scope is disposed.

public static IDisposable EnableGpuInteropByDefault()

Returns​

IDisposable

EnableHostSceneByDefault()​

Enables host-scene rendering for all subsequent Skia leases until the returned scope is disposed.

public static IDisposable EnableHostSceneByDefault()

Returns​

IDisposable

UseGpuInterop(int, int, Matrix3x2, bool)​

Requests that the next Skia lease enable GPU interop for its scene.

public static IDisposable UseGpuInterop(int width, int height, Matrix3x2 localTransform, bool useHostScene)

Parameters​

width int

height int

localTransform Matrix3x2

useHostScene bool

Returns​

IDisposable

UseHostScene(int, int, Matrix3x2)​

Requests that the next Skia lease render directly into the host Vello scene.

public static IDisposable UseHostScene(int width, int height, Matrix3x2 localTransform)

Parameters​

width int

The pixel width of the lease target.

height int

The pixel height of the lease target.

localTransform Matrix3x2

Transform applied before the host scene transform.

Returns​

IDisposable

A disposable scope that restores the previous lease configuration.

UseSelfManagedScene(int, int, Matrix3x2)​

Requests that the next Skia lease record into an isolated scene managed by the shim.

public static IDisposable UseSelfManagedScene(int width, int height, Matrix3x2 localTransform)

Parameters​

width int

The pixel width of the lease target.

height int

The pixel height of the lease target.

localTransform Matrix3x2

Transform applied to the shim scene before append.

Returns​

IDisposable

A disposable scope that restores the previous lease configuration.