Class DxgiAdapter2
The IDXGIAdapter2 interface represents a display sub-system, which includes one or more GPUs, DACs, and video memory.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
[SecurityCritical]
public class DxgiAdapter2 : DxgiObject, IDisposable
Constructors
| Edit this page View SourceDxgiAdapter2(nint)
Initializes a new instance of the DxgiAdapter2 class.
Declaration
public DxgiAdapter2(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiAdapter2Guid
The interface GUID.
Declaration
public static readonly Guid DxgiAdapter2Guid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceDescription
Gets a DXGI 1.2 description of an adapter (or video card).
Declaration
public DxgiAdapterDesc2 Description { get; }
Property Value
| Type | Description |
|---|---|
| DxgiAdapterDesc2 |
Methods
| Edit this page View SourceEnumOutputs()
Enumerate adapter (video card) outputs.
Declaration
public IEnumerable<DxgiOutput2> EnumOutputs()
Returns
| Type | Description |
|---|---|
| IEnumerable<DxgiOutput2> | An IEnumerable of DxgiOutput2. |
EnumOutputs(uint)
Enumerate adapter (video card) outputs.
Declaration
public DxgiOutput2? EnumOutputs(uint i)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | i |
Returns
| Type | Description |
|---|---|
| DxgiOutput2 | An output or null |
GetOutput(uint)
Enumerate adapter (video card) outputs.
Declaration
public DxgiOutput2 GetOutput(uint i)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | i |
Returns
| Type | Description |
|---|---|
| DxgiOutput2 | An output. |
GetOutputsCount()
Get the adapter (video card) outputs.
Declaration
public int GetOutputsCount()
Returns
| Type | Description |
|---|---|
| int |
GetParent()
Gets the parent of the object.
Declaration
public DxgiFactory2 GetParent()
Returns
| Type | Description |
|---|---|
| DxgiFactory2 | The parent of the object. |