Skip to main content
Version: 0.9.0 (next)

GraphicsDeviceId class

Extension: selects the graphics adapter the session's Vulkan and D3D11 devices, and with them every render sender's frame textures, are created on. Chain on OnboardOptions or RejoinOptions; absent, the library picks one. Windows accepts a LUID, other platforms a UUID. The C API currently supports NVIDIA adapters only.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public sealed class GraphicsDeviceId : Structure

Inherits: Structure → GraphicsDeviceId

Constructors​

GraphicsDeviceId()​

public GraphicsDeviceId()

Properties​

MemberDescription
IdType
LuidThe adapter LUID as one 64-bit value: HighPart in the upper 32 bits, LowPart in the lower.
UuidThe adapter UUID, 16 bytes; used when GraphicsDeviceId.IdType is GpuDeviceIdType.Uuid.

IdType​

public GpuDeviceIdType IdType { get; set; }

Value: GpuDeviceIdType

Luid​

The adapter LUID as one 64-bit value: HighPart in the upper 32 bits, LowPart in the lower.

public long Luid { get; set; }

Value: long

Uuid​

The adapter UUID, 16 bytes; used when GraphicsDeviceId.IdType is GpuDeviceIdType.Uuid.

public byte[] Uuid { get; set; }

Value: byte[]

Methods​

FromLuid​

Selects the adapter by its LUID, as on Windows; see GraphicsDeviceId.Luid for the packing.

public static GraphicsDeviceId FromLuid(long luid)

Parameters

NameTypeDescription
luidlong

Returns: GraphicsDeviceId

FromUuid​

Selects the adapter by its 16-byte UUID, as on non-Windows platforms. The array is copied.

public static GraphicsDeviceId FromUuid(byte[] uuid)

Parameters

NameTypeDescription
uuidbyte[]

Returns: GraphicsDeviceId

Exceptions

ExceptionCondition
ArgumentNullExceptionuuid is null.
ArgumentExceptionuuid is not 16 bytes long.