Bewerken

Delen via


PFND3D10_2DDI_GETCAPS callback function (d3d10umddi.h)

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

Syntax

PFND3D10_2DDI_GETCAPS Pfnd3d102DdiGetcaps;

HRESULT Pfnd3d102DdiGetcaps(
  D3D10DDI_HADAPTER unnamedParam1,
  const D3D10_2DDIARG_GETCAPS *unnamedParam2
)
{...}

Parameters

unnamedParam1

hAdapter [in]

A handle that identifies the graphics adapter.

unnamedParam2

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 code Description
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

Requirement Value
Minimum supported client GetCaps(D3D10_2) is supported beginning with the Windows 7 operating system.
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

D3D10_2DDIARG_GETCAPS

D3D10_2DDI_ADAPTERFUNCS