I want to save a complete texture that is in GPU memory in a file.
So i am doing this:
D3D10_MAPPED_TEXTURE2D ddMap; BallsTexACPU->Map(0, D3D10_MAP_READ, 0, &ddMap); fwrite (ddMap.pData , 16*res*res , 1 , SaveStructFile ); //(res*res) the number of pixels in the texture, 16 bytes in each pixel BallsTexACPU->Unmap(0);
BallsTexACPU->Map(0, D3D10_MAP_READ, 0, &ddMap); fwrite (ddMap.pData , 16*res*res , 1 , SaveStructFile );
Edited by lomateron, 20 March 2013 - 01:10 PM.






