Skip to main content

Interface IVelloApiLease

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

Represents an active lease to the Vello rendering API.

public interface IVelloApiLease : IDisposable

Implements

IDisposable

Properties

RenderParams

Gets the render parameters associated with the current scene.

RenderParams RenderParams { get; }

Property Value

RenderParams

Scene

Gets the scene that the drawing context is currently recording into.

Scene Scene { get; }

Property Value

Scene

Transform

Gets the transform applied to the drawing context when the lease was created.

Matrix Transform { get; }

Property Value

Matrix

Methods

ScheduleWgpuSurfaceRender(Action<WgpuSurfaceRenderContext>)

Schedules a wgpu rendering callback that will be executed on the swapchain surface prior to the Vello scene being composited.

void ScheduleWgpuSurfaceRender(Action<WgpuSurfaceRenderContext> renderAction)

Parameters

renderAction Action<WgpuSurfaceRenderContext>

The callback to execute.

TryLeasePlatformGraphics()

Attempts to lease the underlying wgpu platform resources for direct access.

IVelloPlatformGraphicsLease? TryLeasePlatformGraphics()

Returns

IVelloPlatformGraphicsLease?

An when wgpu access is available; otherwise null.