callDevice
On this page

callDevice()

Function in Runtime

The report of the device the calls run on, as gpuDevice() gives it: the device is requested as a call requests it.

import { callDevice } from 'typeshade'
import { callDevice } from 'typeshade/runtime'

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

Syntax

function callDevice(): Promise<DeviceReport | null>

Return value

Promise<DeviceReport | null>

Description

Null where WebGPU is absent.

Source

src/core/host-entry.ts, line 616, at commit af54ddad5

Edit this page Report a problem