   How do I check if D3DFMT_R32F is supported on a FX5200 card.... Unlikely I imagine!
  I am having trouble getting anything out of my Shader model 2.0 shadow map program which uses D3DFMT_R32F.Is this because my FX5200 is rubbish?Or is it my programming which is rubbish? :)Si   
  ok, like this:// Check for R32F surface format supportif( FAILED( m_d3d->CheckDepthStencilMatch( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, d3dpp.BackBufferFormat,D3DFMT_R32F, D3DFMT_D16 ) ) ){MessageBox( NULL, "R32F format not supported!", ERROR, MB_OK | MB_ICONERROR );return false;}This passes if d3dpp.BackBufferFormat is D3DFORMAT_X8R8G8B8 but fails if D3DFORMAT_A8R8G8B8 is used (what I am using!!!)Does this matter since I am only using D3DFMT_R32F as an offscreen shadow map surface?ThanksSimon   ;  I dont think you want to be using CheckDepthStencilMatch() - even if you are using it as a form of depth buffer. Use the more general CheckDeviceFormat() with D3DUSAGE_RENDERTARGET and D3DTYPE_TEXTURE parameters.Remember that you can always use the "DirectX Caps Viewer" to check your own hardware (and its useful for making sure you get enumeration code correct)...hthJack   ;  Thanks Jack...   ;  Just so you know, in the DirectX caps listing that comes with the SDK, it shows FX 5200 does not support R32F.   ;  Actually, DirectX Caps Viewer shows it does, to my surprise:HAL>Caps>Adapter Formats>D3DFMT_X8R8G8B8>Render Target Formats>D3DFMT_R32FMust be my wonky programming then :)   