IDXGIAdapter::GetDesc Method

Gets a DXGI 1.0 description of an adapter (or video card).

Syntax

public:
HRESULT GetDesc(
         DXGI_ADAPTER_DESC *pDesc
)  

Parameters

pDesc
Type: DXGI_ADAPTER_DESC *

[out] A pointer to a DXGI_ADAPTER_DESC structure that describes the adapter. This parameter must not be NULL. On feature level 9 graphics hardware, GetDesc returns zeros for the PCI ID in the VendorId, DeviceId, SubSysId, and Revision members of DXGI_ADAPTER_DESC and “Software Adapter” for the description string in the Description member.

Return value

Type: HRESULT 

This method returns DXGI_ERROR_UNSUPPORTED.

Remarks

Graphics apps can use the DXGI API to retrieve an accurate set of graphics memory values on systems that have Windows Display Driver Model (WDDM) drivers. The following are the critical steps involved.

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIAdapter

IDXGIAdapter Members