Struct DxgiAdapterDesc2
Describes an adapter (or video card) that uses Microsoft DirectX Graphics Infrastructure (DXGI) 1.2.
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiAdapterDesc2 : IEquatable<DxgiAdapterDesc2>
Fields
|
Edit this page
View Source
AdapterDescriptionMaxLength
Gets the maximum char count of the string that contains the adapter description.
Declaration
public const int AdapterDescriptionMaxLength = 128
Field Value
Properties
|
Edit this page
View Source
AdapterDescription
Gets a string that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public readonly string AdapterDescription { get; }
Property Value
|
Edit this page
View Source
AdapterLuid
Gets a unique value that identifies the adapter.
Declaration
public readonly ulong AdapterLuid { get; }
Property Value
|
Edit this page
View Source
AdapterType
Gets a value of the DxgiAdapterType enumeration that describes the adapter type.
Declaration
public readonly DxgiAdapterType AdapterType { get; }
Property Value
|
Edit this page
View Source
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 readonly DxgiComputePreemptionGranularity ComputePreemptionGranularity { get; }
Property Value
|
Edit this page
View Source
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 readonly ulong DedicatedSystemMemory { get; }
Property Value
|
Edit this page
View Source
DedicatedVideoMemory
Gets the number of bytes of dedicated video memory that are not shared with the CPU.
Declaration
public readonly ulong DedicatedVideoMemory { get; }
Property Value
|
Edit this page
View Source
DeviceId
Gets the PCI ID of the hardware device. On feature level 9 graphics hardware, 0.
Declaration
public readonly uint DeviceId { get; }
Property Value
|
Edit this page
View Source
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 readonly DxgiGraphicsPreemptionGranularity GraphicsPreemptionGranularity { get; }
Property Value
|
Edit this page
View Source
Revision
Gets the PCI ID of the revision number of the adapter. On feature level 9 graphics hardware, 0.
Declaration
public readonly uint Revision { get; }
Property Value
|
Edit this page
View Source
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 readonly ulong SharedSystemMemory { get; }
Property Value
|
Edit this page
View Source
SubSysId
Gets the PCI ID of the sub system. On feature level 9 graphics hardware, 0.
Declaration
public readonly uint SubSysId { get; }
Property Value
|
Edit this page
View Source
VendorId
Gets the PCI ID of the hardware vendor. On feature level 9 graphics hardware, 0.
Declaration
public readonly uint VendorId { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(DxgiAdapterDesc2)
Declaration
public readonly bool Equals(DxgiAdapterDesc2 other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetAdapterDescriptionAsSpan()
Gets a string as span that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public readonly ReadOnlySpan<char> GetAdapterDescriptionAsSpan()
Returns
|
Edit this page
View Source
GetAdapterDescriptionCharCount()
Gets the char count of the string that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public readonly int GetAdapterDescriptionCharCount()
Returns
|
Edit this page
View Source
GetAdapterDescriptionChars(Span<char>)
Gets the chars of the string that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public readonly void GetAdapterDescriptionChars(Span<char> desc)
Parameters
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DxgiAdapterDesc2 NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DxgiAdapterDesc2>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DxgiAdapterDesc2> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DxgiAdapterDesc2)
Declaration
public static void NativeWriteTo(nint buffer, in DxgiAdapterDesc2 obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DxgiAdapterDesc2>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DxgiAdapterDesc2> objects)
Parameters
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override readonly string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(DxgiAdapterDesc2, DxgiAdapterDesc2)
Declaration
public static bool operator ==(DxgiAdapterDesc2 left, DxgiAdapterDesc2 right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DxgiAdapterDesc2, DxgiAdapterDesc2)
Declaration
public static bool operator !=(DxgiAdapterDesc2 left, DxgiAdapterDesc2 right)
Parameters
Returns
Implements