Platform SDK: DirectX |
The ID3DXContext::GetDeviceIndex method returns the index of the hardware level for the device.
HRESULT GetDeviceIndex( LPDWORD pIndex, LPDWORD hwLevel );
This method returns S_OK.
The pre-defined, hardware acceleration level constants can be used where ever the actual device index is required. Direct3DX will resolve them to the actual index value. The defined hardware levels are convenient shortcuts to access various levels of acceleration. See the following table for a listing of these constants.
D3DX_HWLEVEL_REFERENCE |
D3DX_HWLEVEL_2D |
D3DX_HWLEVEL_RASTER |
D3DX_HWLEVEL_TL |
D3DX_DEFAULT |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3dxcore.h.
Library: Use d3dx.lib.