Question

I wanna render an image to a texture taking advantage of DirectX acceleration. But instead of showing that image on the screen, I wanna get this image back to the regular memory as a bitmap to do anything with the result. How do I transfer some texture to the regular memory? I am using DirectX 11.

Was it helpful?

Solution

You can use a seperate "staging" texture which has cpu read access. Than copy your rendertarget texture to this staging texture with CopySubresource() or CopyResource() an perform Map() to this staging texture.

--> http://msdn.microsoft.com/en-us/library/windows/desktop/ff476259(v=vs.85).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top