Table of Contents

Struct EncoderAdapterInfo

Namespace
VisioForge.Core.Windows
Assembly
VisioForge.Core.dll

Summary of a DXGI-visible graphics adapter relevant to hardware video encoding. Used to pin AMF/QSV/D3D12 encoders to a specific GPU by LUID, and to translate a LUID to a CUDA device ordinal for NVENC. On non-Windows platforms this is empty data.

public readonly struct EncoderAdapterInfo

Inherited Members

Constructors

EncoderAdapterInfo(long, uint, uint, string, ulong, bool)

Initializes a new instance of the VisioForge.Core.Windows.EncoderAdapterInfo struct.

public EncoderAdapterInfo(long luid, uint vendorId, uint deviceId, string description, ulong dedicatedVideoMemory, bool isSoftware)

Parameters

luid long
vendorId uint
deviceId uint
description string
dedicatedVideoMemory ulong
isSoftware bool

Properties

DedicatedVideoMemory

Dedicated video memory in bytes (0 for iGPUs that use UMA).

public ulong DedicatedVideoMemory { get; }

Property Value

ulong

Description

Adapter description from DXGI.

public string Description { get; }

Property Value

string

DeviceId

PCI device id.

public uint DeviceId { get; }

Property Value

uint

IsSoftware

True for WARP / Microsoft Basic Render Driver.

public bool IsSoftware { get; }

Property Value

bool

Luid

Signed DXGI adapter LUID assembled from DXGI_ADAPTER_DESC1.AdapterLuid. Stable until reboot. Value that GStreamer's adapter-luid property accepts.

public long Luid { get; }

Property Value

long

VendorId

PCI vendor id: 0x1002 AMD, 0x10DE NVIDIA, 0x8086 Intel, 0x1414 Microsoft (WARP).

public uint VendorId { get; }

Property Value

uint