Archived

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

Mr Cucumber

DirectX devices

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