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
Properties
Device
Gets the device associated with the current Vello renderer.
public WgpuDevice Device { get; }
Property Value
Queue
Gets the queue that should be used to submit encoded work.
public WgpuQueue Queue { get; }
Property Value
RenderParams
Gets the render parameters describing the framebuffer dimensions and base color.
public RenderParams RenderParams { get; }
Property Value
SurfaceFormat
Gets the texture format of the swapchain surface.
public WgpuTextureFormat SurfaceFormat { get; }
Property Value
TargetView
Gets the swapchain texture view for the current frame.
public WgpuTextureView TargetView { get; }