runtime()
Function in Runtime
The default runtime: the one configure named, or one on the device the call layer uses, so a resource made on either layer is used on the other.
import { runtime } from 'typeshade/runtime'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
function runtime(): Promise<Runtime>Return value
Promise<Runtime>
Description
Where there is no WebGPU, one on the call layer’s WebGL2 context (change 0054); rejects where there is neither.
In the guide
Source
src/runtime/runtime.ts, line 726, at commit af54ddad5