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
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).
kind:method, kind:property, kind:ctor. Press Esc to clear.WebGLRenderer()Initializes a new instance of the WebGLRenderer class.CanvasGets the canvas that holds the last render drawn without read-back (its top-left corner), to draw into a 2D canvas.DescriptionGets the GPU, sample count and texture limit the context reports, or null before initialization or without WebGL 2.DiagnosticsGets the diagnostics of the last render: fallbacks to the software rasterizer and groups it rasterized.IsAvailableGets a value indicating whether WebGL 2 is available (after InitializeAsync()).TextureBudgetGets or sets the most texture memory images keep on the GPU before the least recently used are released (192 MiB).TextureBytesGets the bytes of texture memory images use on the GPU (mipmaps included).BeginRender(DisplayList, Bitmap, in Matrix, Boolean, CancellationToken)Starts a render that records in time slices and draws on the GPU when the recording completes.InitializeAsync()Loads the backend's JavaScript module and creates the WebGL 2 context; completes with false when WebGL 2 is unavailable.ReadCanvas(Bitmap)Reads the last render drawn without read-back (still in Canvas) into target, for a caller that could not composite the canvas before the next render.Render(PdfPage, RenderOptions)Renders a page at options onto white, like Render(PdfPage, RenderOptions).Render(DisplayList, Bitmap, in Matrix)Renders a display list into target (which holds the background) and reads the pixels back.