Skip to main content

Struct WgpuCommandEncoderContext

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

Backend-specific context for encoding WebGPU commands.

public readonly struct WgpuCommandEncoderContext

Inherited Members​

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

Constructors​

WgpuCommandEncoderContext(WgpuDevice, WgpuQueue, WgpuTextureView, WgpuTextureFormat)​

Initializes a new .

public WgpuCommandEncoderContext(WgpuDevice device, WgpuQueue queue, WgpuTextureView targetView, WgpuTextureFormat surfaceFormat)

Parameters​

device WgpuDevice

WebGPU device associated with the command encoder.

queue WgpuQueue

Queue used to submit encoded work.

targetView WgpuTextureView

Swapchain texture view targeted by the encoder.

surfaceFormat WgpuTextureFormat

Texture format of the swapchain surface.

Properties​

Device​

Gets the WebGPU device.

public WgpuDevice Device { get; }

Property Value​

WgpuDevice

Queue​

Gets the queue that should receive encoded work.

public WgpuQueue Queue { get; }

Property Value​

WgpuQueue

SurfaceFormat​

Gets the 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