AdapterInfo
Electron APIs / recorder / AdapterInfo
Information about a GPU adapter (graphics device).
This structure provides metadata such as adapter name, driver, hardware-accelerated GPU scheduling (HAGS) support, and PCI vendor/device IDs.
Example
const adapter: AdapterInfo = {
index: 0,
name: "NVIDIA GeForce RTX 3080",
driver: "546.33",
hagsEnabled: true,
hagsEnabledByDefault: false,
vendorId: 0x10de,
deviceId: 0x2206,
};
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
deviceId | readonly | number | The PCI device ID of the adapter, identifying the GPU model within its vendor. |
driver | readonly | string | The version of the GPU driver currently installed. |
hagsEnabled | readonly | boolean | Indicates whether Hardware-Accelerated GPU Scheduling (HAGS) is currently enabled. |
hagsEnabledByDefault | readonly | boolean | Indicates whether HAGS is enabled by default on this adapter. |
index | readonly | number | The index of the adapter (usually starts at 0 for the primary GPU). |
name | readonly | string | The display name of the GPU adapter. |
vendorId | readonly | number | The PCI vendor ID of the adapter, reported as a plain number. Common values: 0x10DE (4318) NVIDIA, 0x1002 (4098) AMD, 0x8086 (32902) Intel. Other vendors are possible (e.g. virtual display adapters), so this is a number rather than kGpuVendorId. |