Jump to content
  • Advertisement
Sign in to follow this  
hick18

DX11 How do you use Directx Feature levels?

This topic is 2560 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

How exactly are you supposed to use the feature level functionality of DX11?

Would you have to take note of what feature level was returned from D3D11CreateDevice() and then depending on that, have different paths for all your code? So if a dx9 device had been returned, load a completely different set of shaders that don't use any dx10 or dx11 functionality?

That seems like a real headache.

Share this post


Link to post
Share on other sites
Advertisement
Yes, that is one thing you can do with the feature levels. You can also just check the feature level of the device being returned, and return an error if it is below your supported feature level. So if you don't want to support DX9 GPU's, then you require a minimum feature level of 10. You can also specify which versions you want when creating the device, so that you can restrict yourself to a lower feature set. So if you wanted you could just work at feature level 10, and ignore higher feature levels.

If you're going to support a range of feature levels, usually the only practical way to do it is to author most of your functionality for the lowest common denominator and then add in a few extra shaders/features that are only active for higher feature levels. Having different code paths for everything just isn't really scalable. Even the big AAA games usually work this way.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!