menu

GpuDeviceStatus

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

Runtime-visible device status.

language/library/src/gpu/binding/device.ds:24:33
1export struct GpuDeviceStatus {2    healthy: boolean;3    lossReason: GpuDeviceLossReason;4    backendCode: int32;5    message: string;6}

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.