Skip to main content

Class WgpuRenderer

Namespace: VelloSharp
Assembly: VelloSharp.Gpu.dll

public sealed class WgpuRenderer : IDisposable

Inheritance

objectWgpuRenderer

Implements

IDisposable

Inherited Members

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

Constructors

WgpuRenderer(WgpuDevice, RendererOptions?)

public WgpuRenderer(WgpuDevice device, RendererOptions? options = null)

Parameters

device WgpuDevice

options RendererOptions?

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~WgpuRenderer()

protected ~WgpuRenderer()

Render(Scene, WgpuTextureView, RenderParams)

public void Render(Scene scene, WgpuTextureView textureView, RenderParams parameters)

Parameters

scene Scene

textureView WgpuTextureView

parameters RenderParams

RenderSurface(Scene, WgpuTextureView, RenderParams, WgpuTextureFormat)

public void RenderSurface(Scene scene, WgpuTextureView surfaceView, RenderParams parameters, WgpuTextureFormat surfaceFormat)

Parameters

scene Scene

surfaceView WgpuTextureView

parameters RenderParams

surfaceFormat WgpuTextureFormat

SetProfilerEnabled(bool)

public bool SetProfilerEnabled(bool enabled)

Parameters

enabled bool

Returns

bool

TryGetProfilerFrame()

public GpuProfilerFrame? TryGetProfilerFrame()

Returns

GpuProfilerFrame?