menu
GpuDeviceStatus
import { GpuDeviceStatus } from "destack:gpu/binding";
Runtime-visible device status.
1export struct GpuDeviceStatus {2 healthy: boolean;3 lossReason: GpuDeviceLossReason;4 backendCode: int32;5 message: string;6}Members
healthy: booleanWhether the device is currently operational.
lossReason: GpuDeviceLossReasonDevice-loss reason category, with
UnknownandDestroyedmatching WebGPU andwgpu.backendCode: int32Backend-specific status code when the backend exposes one.
message: stringHuman-readable status message when the backend exposes one.