PFND3D10_2DDI_GETCAPS callback function

The GetCaps(D3D10_2) function queries for capabilities of the graphics adapter.

Syntax


PFND3D10_2DDI_GETCAPS GetCaps;

HRESULT APIENTRY GetCaps(
  _In_       D3D10DDI_HADAPTER     hAdapter,
  _In_ const D3D10_2DDIARG_GETCAPS *pData
)
{ ... }

Parameters

hAdapter [in]

A handle that identifies the graphics adapter.

pData [in]

A pointer to a D3D10_2DDIARG_GETCAPS structure that describes the capabilities to retrieve.

Return value

GetCaps(D3D10_2) returns one of the following values:

Return codeDescription
S_OK

The capabilities are successfully retrieved.

E_OUTOFMEMORY

GetCaps(D3D10_2) could not allocate memory that is required for it to complete.

 

Remarks

The data that is returned by the GetCaps(D3D10_2) function in the pData member of the D3D10_2DDIARG_GETCAPS structure depends on the type of data that is requested (that is, the data depends on the Type member of D3D10_2DDIARG_GETCAPS and sometimes on the pInfo member).

Requirements

Target platform

Version

GetCaps(D3D10_2) is supported beginning with the Windows 7 operating system.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D10_2DDI_ADAPTERFUNCS
D3D10_2DDIARG_GETCAPS

 

 

Send comments about this topic to Microsoft

Show: