createRuntime()
Function in Runtime
Make a runtime: on the host's device, or on one it requests with the features the programs need.
import { createRuntime } from 'typeshade/runtime'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
async function createRuntime<D extends object = object>( options: RuntimeOptions<D> = {},): Promise<Runtime<D>>Parameters
optionsoptionalRuntimeOptions<D>
Return value
Promise<Runtime<D>>
Description
Rejects where there is no WebGPU.
Source
src/runtime/runtime.ts, line 418, at commit 26de7be8