Renderer · interface
DescribeGpuOptions
The seams a test needs. A caller in a browser passes none of them.
Explained in Hello world.
interface DescribeGpuOptionsimport type { DescribeGpuOptions } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
preferWebGpureadonlyoptional | boolean | Whether to ask WebGPU first. Defaults to true, matching createRenderer. |
gpureadonlyoptional | GPU | null | Defaults to navigator.gpu. |
createCanvasreadonlyoptional | () => HTMLCanvasElement | null | Where the WebGL2 fallback reads its string from. Defaults to a detached canvas.MoreDetached, and that is the whole reason this is not read off the caller's canvas. A second
|