cant render to texture using DirectXTK in windows phone 8

Mar 11, 2013 at 2: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 .
Coordinator
Mar 11, 2013 at 7:06 PM
Enable the Debug Layer and look for warnings. This doesn't sound like a issue specific to DirectXTK.
Mar 12, 2013 at 5: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 7: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.