• Advertisement
Sign in to follow this  

Why DirectX

This topic is 2772 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

XNA is based on DirectX.
Then, why should we learn DirectX when we have XNA, a productive tool?

Share this post


Link to post
Share on other sites
Advertisement
XNA address a specific, higher-level need and is only available from C#. DirectX addresses a broader, low-level need and is a COM API and thus accessible from more languages (C and C++ for example).

XNA and DirectX are different tools for different problems. In programming, you evaluate the available tools and choose the ones that best address the problems you want to solve.

Share this post


Link to post
Share on other sites
If XNA offers anything you need there is no need to learn DirectX.

DirectX is still in use because it is an unmanaged API and most commercial games are still written in C++. Another reason is that DirectX gives more control. Finally XNA is based on the DirectX 9 feature level while DirectX itself is already at version 11.

Share this post


Link to post
Share on other sites
As demirug noted, you can't access all the new shadier stages in d3d11. Life is better with compute shadier<grin>!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement