This project has moved and is read-only. For the latest updates, please go here.

cant render to texture using DirectXTK in windows phone 8

Mar 11, 2013 at 3:26 PM
hello
I created texture then I set it as render target , then I drew to it using DirectXTK
but when I view it no shapes rendered to it .
Mar 11, 2013 at 8:06 PM
Enable the Debug Layer and look for warnings. This doesn't sound like a issue specific to DirectXTK.
Mar 12, 2013 at 6:47 AM
I applied the same code(copy and paste) to WinRT directX application and it works fine , the problem appears only on windows phone 8.
Mar 12, 2013 at 8:36 AM
Hi

I found the problem

it appears because the size of render texture is different from the size of

DepthStencilView and ViewPort , to solve the problem we should set the DepthStencilView and ViewPort

size to the same size for created render texture.