menu

GpuDeviceLossReason

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

Device-loss reason category.

language/library/src/gpu/binding/device.ds:8:21
1export enum GpuDeviceLossReason {2    Unknown = 0,3    Destroyed = 1,4    DriverReset = 2,5    DeviceRemoved = 3,6    OutOfMemory = 4,7    InternalError = 5,8}

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.