Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
Direct3D Reference
Interfaces
IDirect3D9
 IDirect3D9::GetDeviceCaps

  Switch on low bandwidth view
IDirect3D9::GetDeviceCaps
Bb174320.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174320.XDK_CHM_BANNER_right(en-us,VS.85).jpg

IDirect3D9::GetDeviceCaps

Retrieves device-specific information about a device.

HRESULT GetDeviceCaps(
  UINT Adapter,
  D3DDEVTYPE DeviceType,
  D3DCAPS9 * pCaps
);

Parameters

Adapter
[in] Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.
DeviceType
[in] Member of the D3DDEVTYPE enumerated type. Denotes the device type.
pCaps
[out] Pointer to a D3DCAPS9 structure to be filled with information describing the capabilities of the device.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DERR_INVALIDDEVICE, D3DERR_OUTOFVIDEOMEMORY, and D3DERR_NOTAVAILABLE.

D3DERR_NOTAVAILABLE will be returned if the desktop is locked (i.e. the D3D driver is unavailable under the protected desktop). The application should retry periodically. The WM_ACTIVATEAPP message can be used to detect when the desktop returns from protected status.

Remarks

The application should not assume the persistence of vertex processing capabilities across Direct3D device objects. The particular capabilities that a physical device exposes may depend on parameters supplied to IDirect3D9::CreateDevice. For example, the capabilities may yield different vertex processing capabilities before and after creating a Direct3D Device Object with hardware vertex processing enabled. For more information see the description of D3DCAPS9.

Requirements

Header: Declared in D3D9.h.

Library: Use D3D9.lib.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker