( canvas?: SupportedCanvas, options?: GPUContextOptions )
| 382 | * ``` |
| 383 | */ |
| 384 | export async function createGPUContextAsync( |
| 385 | canvas?: SupportedCanvas, |
| 386 | options?: GPUContextOptions |
| 387 | ): Promise<GPUContextState> { |
| 388 | const context = createGPUContext(canvas, options); |
| 389 | return initializeGPUContext(context); |
| 390 | } |
| 391 | |
| 392 | /** |
| 393 | * GPUContext class wrapper for backward compatibility. |
nothing calls this directly
no test coverage detected