Documentation / @ripl/webgpu / createContext
Function: createContext()
createContext(
target,options?):Promise<WebGPUContext3D>
Defined in: webgpu/src/context.ts:366
Creates a WebGPU 3D rendering context attached to the given DOM target.
Parameters
| Parameter | Type |
|---|---|
target | string | HTMLElement |
options? | WebGPUContextOptions |
Returns
Promise<WebGPUContext3D>