Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Mr Cucumber

DirectX devices

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

In a Direct3D program you need to enumerate devices two times. First for the DirectDrawCreate function but also for the CreateDevice in Direct3D. So what is the difference between the devices? And which of the enumerations is it that you can find in a game where they let you choose device if there are multiple compatible on the system?

Share this post

Link to post
Share on other sites
The first enumeration you make is to find out which graphics-devices are actually installed on the system ,like your Primary VideCard which is used by windows and any additional cards you have like voodoos or whatever.

The second enumeration is used to determine which modes of Direct3D are currently implemented by you Graphics Card,
which means that it enumerates a RGB-Software Device, if your Device is capable of Software rendering, it gives back a Hardware device if it can render in Hardware and it gives back an HTnL-Device if your device is capable of Hardware Transforming and Lighting.

You normaly don''t let the user select which D3D device to use,
instead you automaticaly use the best enumerated device you find.

The first enumeration is the one you can see in the Games.

Hope my explenation is not to weired

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!