# GpuDeviceStatus

`import { GpuDeviceStatus } from "destack:gpu/binding";`

Runtime-visible device status.

```ds title="GpuDeviceStatus"
export struct GpuDeviceStatus {
    healthy: boolean;
    lossReason: GpuDeviceLossReason;
    backendCode: int32;
    message: string;
}
```

[language/library/src/gpu/binding/device.ds:24:33](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/device.ds#L24-L33)

## Members

### `healthy: boolean`

Whether the device is currently operational.

### `lossReason: GpuDeviceLossReason`

Device-loss reason category, with `Unknown` and `Destroyed` matching WebGPU and `wgpu`.

### `backendCode: int32`

Backend-specific status code when the backend exposes one.

### `message: string`

Human-readable status message when the backend exposes one.
