* Initializes the WebGPU context by requesting an adapter and device. * * @throws {Error} If WebGPU is not available in the browser * @throws {Error} If adapter request fails * @throws {Error} If device request fails * @throws {Error} If already initialized
()
| 480 | * @throws {Error} If already initialized |
| 481 | */ |
| 482 | async initialize(): Promise<void> { |
| 483 | this._state = await initializeGPUContext(this._state); |
| 484 | } |
| 485 | |
| 486 | /** |
| 487 | * Static factory method to create and initialize a GPUContext instance. |
no test coverage detected