Skip to main content

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​

PropertyModifierTypeDescription
deviceIdreadonlynumberThe PCI device ID of the adapter, identifying the GPU model within its vendor.
driverreadonlystringThe version of the GPU driver currently installed.
hagsEnabledreadonlybooleanIndicates whether Hardware-Accelerated GPU Scheduling (HAGS) is currently enabled.
hagsEnabledByDefaultreadonlybooleanIndicates whether HAGS is enabled by default on this adapter.
indexreadonlynumberThe index of the adapter (usually starts at 0 for the primary GPU).
namereadonlystringThe display name of the GPU adapter.
vendorIdreadonlynumberThe 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.