Is it possible to make a screen capture of a DirectX application (game for exemple) in D3D11 ?
I can do it easily in DirectX 9 or with API hooking (IDXGISwapChain::Present), but impossible with DirectX 11.
I initalize D3D11 and create the SwapChain with the Game window (FindWindow()), then I get the BackBuffer,
then ID3D11Texture2D::GetDesc() to use it in ID3D11Device::CreateTexture2D(), then ID3D11DeviceContext::CopyResource() which gives me a new ID3D11Texture2D resource.
When I save it with usual ways like D3DX11SaveTextureToFile(), I always get a Black image.
What did I forget ?
Thanks.