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
| Member | Description |
|---|---|
| IdType | |
| Luid | The adapter LUID as one 64-bit value: HighPart in the upper 32 bits, LowPart in the lower. |
| Uuid | The 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
| Name | Type | Description |
|---|---|---|
luid | long |
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
| Name | Type | Description |
|---|---|---|
uuid | byte[] |
Returns: GraphicsDeviceId
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | uuid is null. |
| ArgumentException | uuid is not 16 bytes long. |