Table of Contents

Class WebGPUDeviceContext

Namespace
SixLabors.ImageSharp.Drawing.Processing.Backends
Assembly
SixLabors.ImageSharp.Drawing.WebGPU.dll

Owns the WebGPU device-scoped drawing state shared by render targets, surfaces, shader programs, and pipelines.

public sealed class WebGPUDeviceContext
Inheritance
WebGPUDeviceContext
Inherited Members

Properties

Backend

Gets the WebGPU drawing backend owned by this context. Use this to inspect per-flush diagnostics for chunked rendering.

public WebGPUDrawingBackend Backend { get; }

Property Value

WebGPUDrawingBackend

Configuration

Gets the configuration provided when the context was created.

public Configuration Configuration { get; }

Property Value

Configuration

Methods

Precompile(IWebGPUShaderEffect)

Compiles and caches every pipeline used by a shader effect on this WebGPU device.

public void Precompile(IWebGPUShaderEffect effect)

Parameters

effect IWebGPUShaderEffect

The shader effect to compile.

Remarks

Call this before the effect's first rendered frame when shader compilation latency must not occur during presentation.