* Creates a new GPUContext instance. * * @param canvas - Optional canvas element (HTMLCanvasElement or OffscreenCanvas) to configure for WebGPU rendering * @param options - Optional configuration for device pixel ratio, alpha mode, and power preference
(canvas?: SupportedCanvas, options?: GPUContextOptions)
| 468 | * @param options - Optional configuration for device pixel ratio, alpha mode, and power preference |
| 469 | */ |
| 470 | constructor(canvas?: SupportedCanvas, options?: GPUContextOptions) { |
| 471 | this._state = createGPUContext(canvas, options); |
| 472 | } |
| 473 | |
| 474 | /** |
| 475 | * Initializes the WebGPU context by requesting an adapter and device. |
nothing calls this directly
no test coverage detected