Regarding D3DXSaveTextureToFile
Hi,
I am working on an application that captures streams from D3D applications and then replays them. While replaying we can dump information related to the frames of our interest. In order to dump we switch to software processing mode.Along with all the other information being dumped, we also dump textures in dds format using
D3DXSaveTextureToFileA(FileName, D3DXIFF_DDS, pTexture, NULL);
where pTexture = (LPDIRECT3DTEXTURE9) m_pTexObj->getIUnknown();
While doing this whenever
Desc.Format = D3DFMT_A2W10V10U10
D3DXSaveTextureToFileA fails with the error message
Direct3D9: (ERROR) :The format is not supported by this device. CreateRenderTarget/CreateDepthStencil failed
Direct3D9: (ERROR) :Failure trying to create render-target
I checked the supported formats using
hr = lpD3D->CheckDeviceFormat(D3DADAPTER_DEFAULT,D3DDEVTYPE_SW,pMode.Format,0,D3DRTYPE_TEXTURE,D3DFMT_A2W10V10U10);
which return NOT_AVAILALBE.
Is there anyway I can dump D3DFMT_A2W10V10U10 format textures to *.dds files.
I will really appreciate any help.
Thanks and Regards,
gullu

