Thanks guys, r32f detection works now

Code:
#define D3DFMT_X8R8G8B8 22
#define D3DFMT_R32F 114
#define D3DRTYPE_TEXTURE 3
#define D3DUSAGE_RENDERTARGET (0x00000001L)

void getR32FSupport()
{
   LPDIRECT3D9 mypD3D;
   mypD3D = pd3d;

   var b_r32f = (mypD3D)->CheckDeviceFormat(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, D3DUSAGE_RENDERTARGET, D3DRTYPE_TEXTURE, D3DFMT_R32F);

   if(b_r32f == 0) //r32f supported for RTs
   else //r32f not supported, b_r32f == -653206
}



No let's see if we can get the pixelshader detection working as well... laugh


Shade-C EVO Lite-C Shader Framework