IDXGIAdapter2::GetDesc2 Method

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

Syntax

public:
HRESULT GetDesc2(
         DXGI_ADAPTER_DESC2 *pDesc
)  

Parameters

pDesc
Type: DXGI_ADAPTER_DESC2 *

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

Return value

Type: HRESULT 

Returns S_OK if successful; otherwise, returns E_INVALIDARG if the pDesc parameter is NULL.

Remarks

This method is not supported by DXGI 1.0, which shipped in Windows Vista and Windows Server 2008. DXGI 1.1 support is required, which is available on Windows 7, Windows Server 2008 R2, and as an update to Windows Vista with Service Pack 2 (SP2) (KB 971644) and Windows Server 2008 (KB 971512).

Use the GetDesc2 method to get a DXGI 1.1 description of an adapter. To get a DXGI 1.0 description, use the IDXGIAdapter method.

Requirements

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

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

See also

IDXGIAdapter2

IDXGIAdapter2 Members