Skip to main content

Interface: WebGPURendererOptions

Defined in: src/core/Options.ts:112

Properties​

forceWebGL?​

optional forceWebGL: boolean

Defined in: src/core/Options.ts:120

Uses the WebGL2 backend of WebGPURenderer. When unset, the SDK checks WebXR+WebGPU availability separately from 2D navigator.gpu and enables this automatically on XR devices lacking XRGPUBinding or an xrCompatible WebGPU adapter so immersive sessions and TSL subsystems (such as @sparkjsdev/radix) still start on WebGL2.


requiredLimits?​

optional requiredLimits: Record<string, number | "adapter">

Defined in: src/core/Options.ts:126

Optional WebGPU device limits to request (clamped to the adapter's supported limits). Pass 'adapter' to request the full hardware maximum for a given limit.