IDirect3D9::CheckDeviceFormatConversion

This is a method of IDirect3D9 which tests the device to see if it supports conversion from one display format to another.

Syntax
HRESULT CheckDeviceFormatConversion( UINT Adapter,  D3DDEVTYPE DeviceType,  D3DFORMAT SourceFormat,  D3DFORMAT TargetFormat );

Parameters
 Adapter -  Ordinal number that identifies the display adapter. It will likely be D3DADAPTER_DEFAULT.

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

 SourceFormat -  A member of D3DDEVTYPE which is the format of the source adapter.

 TargetFormat -  A member of D3DDEVTYPE which is the format of the target adapter.

Return Values
If it succeeds, it will return D3D_OK, otherwise it will return D3DERR_NOTAVAILABLE. If a parameter is incorrect, it will return D3DERR_INVALIDCALL.

Requirements
Header -  d3d9.h

Library -  d3d9.lib