I've been trying to create a direct2d render target from a swapchain. I have tried to mimic the solution from this thread: http://www.gamedev.net/topic/639578-d2d-d3d11-help-me-to-make-them-work-together/, but it does not work. I get an invalid argument error, and I've eliminated all the other possibilities except the surface I've given it. I am currently using Surface1.FromSwapChain to get my surface for my render target but that does not work. I've tried many ways of getting the surface but nothing seems to work. If anyone can point me in a direction it would be very useful.
Thanks very much,
Curin