I’ve been trying to work through a tutorial which I foresee will be very helpful to my current project, but it was target at XNA 3.1. Thus, many sections of code (which the author does not explain too much) are now obsolete. Here’s a pastebin of the file. The main thing that sticks out to me is the GraphicsDevice.CheckDepthStencilMatch function. I can’t seem to find out much about it. Is it even necessary anymore? As you can see I’ve commented out some of the sections which I think are no longer required.
Share
Check out XNA 4.0 method: GraphicsAdapter.QueryRenderTargetFormat Method
The description for it:
I believe this is what you’re looking for.
Let me know if you need specific code sample or anything else.