Original Post
Hi,
I'm trying to get the back buffer pixel data in DX11 in order to save it to a file. What I want is to be able to take a capture at various times while the app is running, and save then to files when the app closes to avoid any slow downs cause by D3DX11SaveTextureToFile. Thing is if I just create a bunch of ID3D11Texture2D they all point to the same back buffer pixel data, so I'll just end up saving the last frame that was rendered into each texture onto the file system.
Is there any way to get the pixel data of the back buffer, and actually copy that data to a new ID3D11Texture2D ?
Thanks
I'm trying to get the back buffer pixel data in DX11 in order to save it to a file. What I want is to be able to take a capture at various times while the app is running, and save then to files when the app closes to avoid any slow downs cause by D3DX11SaveTextureToFile. Thing is if I just create a bunch of ID3D11Texture2D they all point to the same back buffer pixel data, so I'll just end up saving the last frame that was rendered into each texture onto the file system.
Is there any way to get the pixel data of the back buffer, and actually copy that data to a new ID3D11Texture2D ?
Thanks