MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / initialize

Method initialize

src/core/GPUContext.ts:482–484  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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.

Callers 1

createMethod · 0.95

Calls 1

initializeGPUContextFunction · 0.85

Tested by

no test coverage detected