Skip to main content

Struct SkiaCommandEncoderContext

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

Backend-specific context for encoding Skia commands.

public readonly struct SkiaCommandEncoderContext

Inherited Members

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

Constructors

SkiaCommandEncoderContext(SKCanvas, SKSurface, GRContext?)

Initializes a new .

public SkiaCommandEncoderContext(SKCanvas canvas, SKSurface surface, GRContext? grContext)

Parameters

canvas SKCanvas

Skia canvas for issuing draw commands.

surface SKSurface

Underlying Skia surface for the current frame.

grContext GRContext?

Optional Skia GPU context.

Properties

Canvas

Gets the Skia canvas that should receive draw commands.

public SKCanvas Canvas { get; }

Property Value

SKCanvas

GrContext

Gets the optional Skia GPU context.

public GRContext? GrContext { get; }

Property Value

GRContext?

Surface

Gets the Skia surface backing the canvas.

public SKSurface Surface { get; }

Property Value

SKSurface