Docs / Capabilities

Glossary: VideoCard

The members of VideoCard, in alphabetical order.

Color legend plain property method

A video card as DirectX knows it: what it is, how much memory it has, and which card Windows makes an app’s Direct3D devices on, now and for each graphics preference.

A sealed record, in the namespace BorrowedTorch.Capabilities, compared by its values; its properties can be set with an initializer or with. VideoCards.List makes them, read once: a card plugged in or out, or a preference changed, shows in the next list. The video cards page shows it in context, with code.

Names are colored by what they are: a property or a method; values and fields keep the plain color.

Properties

DedicatedSystemMemory →

long · The machine’s memory set aside for the card alone when the machine starts, in bytes.

DedicatedVideoMemory →

long · The card’s own memory, in bytes: none, or little, for a card built into the processor, which draws in the machine’s memory (SharedSystemMemory).

DeviceId →

int · The PCI id of the card’s model, among its maker’s: 0x2560 for a GeForce RTX 3060 Laptop GPU.

IsDefault →

bool · The card a Direct3D device made without naming one is made on, in the process that read the list: the first DXGI lists, which already follows the app’s graphics preference. The MonoGame WindowsDX the BorrowedTorch editor runs on makes its device that way, whatever GraphicsAdapter it is handed. A list read after the app’s preference has changed may already mark the card its next start goes to.

IsPreferredForHighPerformance →

bool · The card Windows makes an app’s devices on when the app’s graphics preference is GpuPreference.HighPerformance: the first DXGI 1.6 ranks for it. false for every card on Windows 10 before 1803.

IsPreferredForPowerSaving →

bool · The card Windows makes an app’s devices on when the app’s graphics preference is GpuPreference.PowerSaving: the first DXGI 1.6 ranks for it. false for every card on Windows 10 before 1803.

IsSoftware →

bool · The Microsoft Basic Render Driver: no card at all, Direct3D drawn on the processor (WARP). Listed only when asked for, see VideoCards.List.

Luid →

long · The id Windows knows the card by until it restarts, its LUID, as one number: what Direct3D and DXGI name the adapter by, and what a display names its card by (Display.VideoCardLuid). It changes when the machine restarts: save a card by its name and ids.

Name →

string · The name the driver gives the card: NVIDIA GeForce RTX 3060 Laptop GPU.

ReachedBy →

GpuPreference? · Read-only. The graphics preference that has Windows make an app’s devices on this card, to set with GpuPreferences.Set for a game to draw with it from its next start: GpuPreference.HighPerformance where both preferences pick it (a machine with one card), GpuPreference.PowerSaving where only power saving does, null where neither does (a third card, or any card on Windows 10 before 1803). A card no preference reaches is drawn with only by a renderer that names it.

Revision →

int · The chip’s revision.

SharedSystemMemory →

long · The machine’s memory the card can use besides, shared with everything else, in bytes.

SubSystemId →

int · The id of the board the chip is on: the board’s id and its maker’s together.

Vendor →

GpuVendor · Who made the card, read from VendorId by VendorOf.

VendorId →

int · The PCI id of the card’s maker: 0x10DE for NVIDIA.

Methods

VendorOf(int) →

VendorOf(int vendorId) · Static. Returns the maker a PCI vendor id stands for: GpuVendor.Unknown for an id the list doesn’t know.

Parameter Type Description
vendorId int A PCI vendor id, as VendorId gives it.