Skip to content

@graphty/graphty-element / index / AccelerationErrorCode

Type Alias: AccelerationErrorCode ​

AccelerationErrorCode = "E_NO_WEBGPU" | "E_NO_ADAPTER" | "E_SOFTWARE_ONLY" | "E_DEVICE_INCORRECT" | "E_DEVICE_LOST" | "E_TOO_LARGE"

Defined in: graphty-element/src/errors/codes.ts:465

The subset of codes that describe why hardware acceleration is unavailable or has stopped.

This is the type of capabilities.acceleration.code, where a code is reported rather than thrown: absence of acceleration is a state the consumer renders, not a failure it catches.