开发者

What is the XNA 4.0 equivalent of GraphicsDevice.CheckDepthStencilMatch?

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 secti开发者_如何学Pythonons which I think are no longer required.


Check out XNA 4.0 method: GraphicsAdapter.QueryRenderTargetFormat Method

The description for it:

Queries the adapter for support for the requested render target format.

I believe this is what you're looking for.

Let me know if you need specific code sample or anything else.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜