Struct DxgiAdapterDesc2
Describes an adapter (or video card) that uses Microsoft DirectX Graphics Infrastructure (DXGI) 1.2.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiAdapterDesc2 : IEquatable<DxgiAdapterDesc2>
Properties
| Edit this page View SourceAdapterDescription
Gets a string that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public string AdapterDescription { get; }
Property Value
| Type | Description |
|---|---|
| string |
AdapterLuid
Gets a unique value that identifies the adapter.
Declaration
public ulong AdapterLuid { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
AdapterType
Gets a value of the DxgiAdapterType enumeration that describes the adapter type.
Declaration
public DxgiAdapterType AdapterType { get; }
Property Value
| Type | Description |
|---|---|
| DxgiAdapterType |
ComputePreemptionGranularity
Gets a value of the DxgiComputePreemptionGranularity enumeration that describes the granularity level at which the GPU can be preempted from performing its current compute task.
Declaration
public DxgiComputePreemptionGranularity ComputePreemptionGranularity { get; }
Property Value
| Type | Description |
|---|---|
| DxgiComputePreemptionGranularity |
DedicatedSystemMemory
Gets the number of bytes of dedicated system memory that are not shared with the CPU. This memory is allocated from available system memory at boot time.
Declaration
public ulong DedicatedSystemMemory { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
DedicatedVideoMemory
Gets the number of bytes of dedicated video memory that are not shared with the CPU.
Declaration
public ulong DedicatedVideoMemory { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
DeviceId
Gets the PCI ID of the hardware device. On feature level 9 graphics hardware, 0.
Declaration
public uint DeviceId { get; }
Property Value
| Type | Description |
|---|---|
| uint |
GraphicsPreemptionGranularity
Gets a value of the DxgiGraphicsPreemptionGranularity enumeration that describes the granularity level at which the GPU can be preempted from performing its current graphics rendering task.
Declaration
public DxgiGraphicsPreemptionGranularity GraphicsPreemptionGranularity { get; }
Property Value
| Type | Description |
|---|---|
| DxgiGraphicsPreemptionGranularity |
Revision
Gets the PCI ID of the revision number of the adapter. On feature level 9 graphics hardware, 0.
Declaration
public uint Revision { get; }
Property Value
| Type | Description |
|---|---|
| uint |
SharedSystemMemory
Gets the number of bytes of shared system memory. This is the maximum value of system memory that may be consumed by the adapter during operation. Any incidental memory consumed by the driver as it manages and uses video memory is additional.
Declaration
public ulong SharedSystemMemory { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
SubSysId
Gets the PCI ID of the sub system. On feature level 9 graphics hardware, 0.
Declaration
public uint SubSysId { get; }
Property Value
| Type | Description |
|---|---|
| uint |
VendorId
Gets the PCI ID of the hardware vendor. On feature level 9 graphics hardware, 0.
Declaration
public uint VendorId { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceEquals(DxgiAdapterDesc2)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DxgiAdapterDesc2 other)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiAdapterDesc2 | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DxgiAdapterDesc2, DxgiAdapterDesc2)
Compares two DxgiAdapterDesc2 objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DxgiAdapterDesc2 left, DxgiAdapterDesc2 right)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiAdapterDesc2 | left | The left DxgiAdapterDesc2 to compare. |
| DxgiAdapterDesc2 | right | The right DxgiAdapterDesc2 to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(DxgiAdapterDesc2, DxgiAdapterDesc2)
Compares two DxgiAdapterDesc2 objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DxgiAdapterDesc2 left, DxgiAdapterDesc2 right)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiAdapterDesc2 | left | The left DxgiAdapterDesc2 to compare. |
| DxgiAdapterDesc2 | right | The right DxgiAdapterDesc2 to compare. |
Returns
| Type | Description |
|---|---|
| bool |