DirectX SDK |
The D3DXGetMaxSurfaceFormats function returns the maximum number of surface formats supported by the device at the specified video mode.
DWORD D3DXGetMaxSurfaceFormats( DWORD deviceIndex, D3DX_VIDMODEDESC* pDesc, DWORD surfClassFlags );
If the function succeeds, the return value is the maximum number of surface formats supported by the device at the specified video mode.
If the function fails, the return value may be one of the following values:
D3DXERR_D3DXNOTSTARTEDYET |
D3DXERR_INITFAILED |
D3DXERR_INVALIDD3DXDEVICEINDEX |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Version: Requires DirectX 7.0.
Header: Declared in d3dxcore.h.
Library: Use d3dx.lib.