IDXGIAdapter1::GetDesc1 Method

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

Syntax

public:
HRESULT GetDesc1(
         DXGI_ADAPTER_DESC1 *pDesc
)  

Parameters

pDesc
Type: DXGI_ADAPTER_DESC1 *

[out]

A pointer to a DXGI_ADAPTER_DESC1 structure that describes the adapter. This parameter must not be NULL. On feature level 9 graphics hardware, GetDesc1 returns zeros for the PCI ID in the VendorId, DeviceId, SubSysId, and Revision members of DXGI_ADAPTER_DESC1 and “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 GetDesc1 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 (dxgi.h on other Windows platforms).

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

See also

IDXGIAdapter1

IDXGIAdapter1 Members