# GpuDeviceLossReason

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

Device-loss reason category.

```ds title="GpuDeviceLossReason"
export enum GpuDeviceLossReason {
    Unknown = 0,
    Destroyed = 1,
    DriverReset = 2,
    DeviceRemoved = 3,
    OutOfMemory = 4,
    InternalError = 5,
}
```

[language/library/src/gpu/binding/device.ds:8:21](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/device.ds#L8-L21)

## Variants

### `Unknown = 0`

Device was lost for an unknown reason.

### `Destroyed = 1`

Device was intentionally destroyed.

### `DriverReset = 2`

Device became unavailable due to driver reset.

### `DeviceRemoved = 3`

Device was removed from the system.

### `OutOfMemory = 4`

Device was lost due to out-of-memory conditions.

### `InternalError = 5`

Device was lost due to internal backend error.
