---
title: "callDevice(): function in Runtime, TypeShade API reference"
description: "callDevice, a 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."
url: https://typeshade.dev/api/calldevice/
language: en
---

# `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

```ts
function callDevice(): Promise<DeviceReport | null>
```

## Return value

`Promise<DeviceReport | null>`

## Description

Null where WebGPU is absent.

## Source

[`src/core/host-entry.ts`, line 616](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/host-entry.ts#L616), at commit af54ddad5
