Skip to content

@graphty/graphty-element / index / AcceleratorDeviceInfo

Interface: AcceleratorDeviceInfo ​

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

What an accelerator says about the hardware it is running on.

Three plain strings, so a status chip can render "NVIDIA, ampere" without importing a GPU type or parsing a renderer string.

This side is ALWAYS PRESENT, MAY BE EMPTY: an accelerator fills in what its driver told it and "" for what it did not, so an implementer never has to choose between "" and undefined. AccelerationStatus, what a consumer reads, is the opposite -- a field is there only when the backend reported one -- and AccelerationController is the single place that converts between the two, dropping every empty string on the way out. Keep it that way: a browser masks the device and the description for an ordinary origin, so empty is the common case and a consumer must never be handed "" to render.

Properties ​

architecture ​

readonly architecture: string

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

The device family, as the driver reports it: "ampere", "rdna-3", "" when unknown.


description ​

readonly description: string

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

A human-readable description of the device, "" when unknown. Never undefined.


vendor ​

readonly vendor: string

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

The hardware vendor, as the driver reports it: "nvidia", "apple", "" when unknown.