Skip to main content

Struct WgpuSurfaceRenderContext

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

Provides the context required to encode additional wgpu work targeting the current swapchain surface.

public readonly struct WgpuSurfaceRenderContext

Inherited Members​

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

Constructors​

WgpuSurfaceRenderContext(WgpuDevice, WgpuQueue, WgpuTextureView, RenderParams, WgpuTextureFormat)​

public WgpuSurfaceRenderContext(WgpuDevice device, WgpuQueue queue, WgpuTextureView targetView, RenderParams renderParams, WgpuTextureFormat surfaceFormat)

Parameters​

device WgpuDevice

queue WgpuQueue

targetView WgpuTextureView

renderParams RenderParams

surfaceFormat WgpuTextureFormat

Exceptions​

ArgumentNullException

Properties​

Device​

Gets the device associated with the current Vello renderer.

public WgpuDevice Device { get; }

Property Value​

WgpuDevice

Queue​

Gets the queue that should be used to submit encoded work.

public WgpuQueue Queue { get; }

Property Value​

WgpuQueue

RenderParams​

Gets the render parameters describing the framebuffer dimensions and base color.

public RenderParams RenderParams { get; }

Property Value​

RenderParams

SurfaceFormat​

Gets the texture format of the swapchain surface.

public WgpuTextureFormat SurfaceFormat { get; }

Property Value​

WgpuTextureFormat

TargetView​

Gets the swapchain texture view for the current frame.

public WgpuTextureView TargetView { get; }

Property Value​

WgpuTextureView