Skip to content

@graphty/graphty-element / index / AccelerationStatus

Interface: AccelerationStatus ​

Defined in: graphty-element/src/acceleration/types.ts:238

Where acceleration stands, as a consumer reads it.

This is the acceleration member of Capabilities and the payload a status chip renders. It is plain, frozen, serialisable data: no GPU objects, no promises, no classes.

Properties ​

architecture? ​

readonly optional architecture?: string

Defined in: graphty-element/src/acceleration/types.ts:260

The device family, when the backend reported one. Absent otherwise, never "".


backend? ​

readonly optional backend?: string & object | "webgpu"

Defined in: graphty-element/src/acceleration/types.ts:249

The attached accelerator's backend, when one is attached.


code? ​

readonly optional code?: AccelerationErrorCode

Defined in: graphty-element/src/acceleration/types.ts:266

Why acceleration is unavailable or has stopped, in a string a switch can take.


device? ​

readonly optional device?: string

Defined in: graphty-element/src/acceleration/types.ts:262

The device description, when the backend reported one. Absent otherwise, never "".


policy ​

readonly policy: AccelerationPolicy

Defined in: graphty-element/src/acceleration/types.ts:245

The policy in force: what the consumer asked for, however they asked -- the acceleration attribute, the property, or session.acceleration. A change of policy publishes a new status even when the state does not move.

Since ​

2.3.0


reason? ​

readonly optional reason?: string

Defined in: graphty-element/src/acceleration/types.ts:264

Why acceleration is unavailable or has stopped, in a sentence a person can read.


state ​

readonly state: AccelerationState

Defined in: graphty-element/src/acceleration/types.ts:247

The one-word state.


vendor? ​

readonly optional vendor?: string

Defined in: graphty-element/src/acceleration/types.ts:258

The hardware vendor, when the backend reported one. Absent otherwise, never "".

The three device facts arrive from an accelerator as AcceleratorDeviceInfo, where they are always present and an unknown one is "". They are published here the other way round, so a consumer can test one with ?? or !== undefined and never render an empty string. AccelerationController is what converts.