IDirect3DDevice::GetStats

HRESULT GetStats(LPD3DSTATS lpD3DStats);

Retrieves statistics about a device.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpD3DStats

Address of a D3DSTATS structure that will be filled with the statistics.