Skip to content

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

ParameterType
targetstring | HTMLElement
options?WebGPUContextOptions

Returns

Promise<WebGPUContext3D>