WebGLRenderer Class

Definition

Renders display lists with WebGL 2 in the browser: the list is recorded into triangles and commands in .NET, then drawn by the GPU in one call into a canvas the page shares, and read back into a Bitmap (or left in Canvas for a caller that composites canvases). What it cannot draw natively makes the software rasterizer draw that render instead, with a diagnostic.

[SupportedOSPlatform("browser")]
public sealed class WebGLRenderer : IDisposable

Remarks

ISO 32000-2 §10.7.1 (rendering) through the display list. The backend is opt-in and falls back to the software rasterizer. Call InitializeAsync() once before rendering. One render at a time per instance; instances share one WebGL context, so renders on one page are sequential (WebAssembly is single-threaded).

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (6)

Methods (6)