IDirect3D9::CheckDeviceMultiSampleType

A method of IDirect3D9 which determines if a multisampling technique is available on this device.

Syntax
HRESULT CheckDeviceMultiSampleType( UINT Adapter,  D3DDEVTYPE DeviceType,  D3DFORMAT SurfaceFormat,  BOOL Windowed,  D3DMULTISAMPLE_TYPE MultiSampleType,  DWORD* pQualityLevels );

Parameters
 Adapter -  Ordinal number that identifies the adapter to check. It will most likely be D3DADAPTER_DEFAULT.

 DeviceType -  A member of D3DDEVTYPE that tells the type of the device.

 SurfaceFormat -  A member of D3DDEVTYPE that tells the format of the surface.

 Windowed -  True is windowed, false is fullscreen.

 MultiSampleType -  A member of D3DMULTISAMPLE_TYPE that identifies the type to test for.

 pQualityLevels -  Output identifying the quality levels that can be used.

Return Values
If it succeeded, it will return D3D_OK. It will return D3DERR_INVALIDCALL if one of the parameters is incorrect. It will return D3DERR_NOTAVAILABLE if the requested MultiSampling technique is not supported by the device. It will return D3DERR_INVALIDDEVICE if the DeviceType does not apply to the Adapter.

Requirements
 Header -  d3d9.h

 Library -  d3d9.lib