Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
841 B
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-or-later

export type PlatformGpuInfoSource = 'metal' | 'dxgi' | 'linux-sysfs';

export interface PlatformGpuDeviceInfo {
	active: boolean;
	vendorId: number;
	deviceId: number;
	vendorName?: string;
	deviceString?: string;
	driverVendor?: string;
	driverVersion?: string;
	dedicatedVideoMemory?: number;
	sharedSystemMemory?: number;
	subsystemVendorId?: number;
	subsystemDeviceId?: number;
	registryId?: string;
	adapterLuid?: string;
	pciPath?: string;
	integrated?: boolean;
	removable?: boolean;
	headless?: boolean;
	source: PlatformGpuInfoSource;
}

export interface PlatformGpuInfo {
	devices: ReadonlyArray<PlatformGpuDeviceInfo>;
	source: PlatformGpuInfoSource;
	error?: string;
}

export declare const getGpuInfo: (() => PlatformGpuInfo) | null;
export declare const loadError: Error | null;