문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top