[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DXGI.Adapter

Class Adapter

Namespace
GrapeCity.Documents.DX.DXGI
Assembly
GcDocs.DX.Windows.dll

IDXGIAdapter

[Guid("2411e7e1-12ac-4ccf-bd14-9798e8534dc0")]
public class Adapter : DXGIObject, IDisposable, IUnknown
Inheritance
object
Adapter
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Adapter(IntPtr)

Initializes a new instance of the Adapter class.

public Adapter(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Description

GetDescription

public AdapterDescription Description { get; }

Property Value

AdapterDescription

Outputs

Gets all outputs from this adapter.

public Output[] Outputs { get; }

Property Value

Output[]

Methods

CheckInterfaceSupport(Guid, out long)

HRESULT IDXGIAdapter::CheckInterfaceSupport([In] const GUID& InterfaceName,[Out] LARGE_INTEGER* pUMDVersion)

public HResult CheckInterfaceSupport(Guid interfaceName, out long uMDVersionRef)

Parameters

interfaceName System.Guid
uMDVersionRef long

Returns

HResult

GetDescription(out AdapterDescription)

HRESULT IDXGIAdapter::GetDesc([Out] DXGI_ADAPTER_DESC* pDesc)

public void GetDescription(out AdapterDescription descRef)

Parameters

descRef AdapterDescription

GetOutput(int, out Output)

HRESULT IDXGIAdapter::EnumOutputs([In] unsigned int Output,[Out] IDXGIOutput** ppOutput)

public HResult GetOutput(int output, out Output outputOut)

Parameters

output int
outputOut Output

Returns

HResult

GetOutput(int)

Gets an adapter (video card) outputs.

public Output GetOutput(int outputIndex)

Parameters

outputIndex int

The index of the output.

Returns

Output

An instance of Output

GetOutputCount()

Return the number of available outputs from this adapter.

public int GetOutputCount()

Returns

int

The number of outputs

IsInterfaceSupported(Type, out long)

Checks to see if a device interface for a graphics component is supported by the system.

public bool IsInterfaceSupported(Type type, out long userModeVersion)

Parameters

type System.Type

The GUID of the interface of the device version for which support is being checked. For example, typeof(ID3D10Device).GUID.

userModeVersion long

The user mode driver version of InterfaceName. This is only returned if the interface is supported.

Returns

bool

true if the interface is supported; otherwise, false.

IsInterfaceSupported(Type)

Checks to see if a device interface for a graphics component is supported by the system.

public bool IsInterfaceSupported(Type type)

Parameters

type System.Type

The GUID of the interface of the device version for which support is being checked. For example, typeof(ID3D10Device).GUID.

Returns

bool

true if the interface is supported; otherwise, false.

IsInterfaceSupported<T>()

Checks to see if a device interface for a graphics component is supported by the system.

public bool IsInterfaceSupported<T>() where T : ComObject

Returns

bool

true if the interface is supported; otherwise, false.

Type Parameters

T

the interface of the device version for which support is being checked.

IsInterfaceSupported<T>(out long)

Checks to see if a device interface for a graphics component is supported by the system.

public bool IsInterfaceSupported<T>(out long userModeVersion) where T : ComObject

Parameters

userModeVersion long

The user mode driver version of InterfaceName. This is only returned if the interface is supported.

Returns

bool

true if the interface is supported; otherwise, false.

Type Parameters

T

the interface of the device version for which support is being checked.

Operators

explicit operator Adapter(IntPtr)

Performs an explicit conversion from System.IntPtr to Adapter.

public static explicit operator Adapter(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Adapter