Solved

How do I check version of DX supported by hardware?

Posted on 2011-03-04
7
616 Views
Last Modified: 2012-05-11
Hi experts,

How do I check (in VC++) the versions of D3D/DX supported by the graphics hardware on the current system?

Thanks
0
Comment
Question by:chrispauljarram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 10

Expert Comment

by:Martin_J_Parker
ID: 35036768
Do you have the DirectX SDK loaded?  There is sample code in there.
In the V9 SDK it was something like
\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Samples\C++\Misc\GetDXVer
0
 
LVL 12

Assisted Solution

by:mwochnick
mwochnick earned 100 total points
ID: 35036797
I found this post on an SDK example, don't have the sdk on my current computer
http://www.programmersheaven.com/2/FAQ-DIRECTX-Understand-Version-Programmatically

To determine the DirectX version programmatically there is a sample Application in the "DXSDK\Samples\C++\Misc\GetDXVer" folder. It first checks the DirectX version using DxDiag. If it can't find out the version it simply checks each file version. The return type of the "GetDXVersion" function will be a DWord indicating the version.
0
 

Author Comment

by:chrispauljarram
ID: 35039271
Hi,

Sure - but won't that just give the DX version installed in Windows? (e.g. in Win7 it's always DX11).  I need to know the capabilities of the current graphics card without having to create a D3D device and look for a fail (i.e. is dx10, dx10.1 or dx11 the max DX ver supported by the hardware?...)

Cheers,
Chris
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:chrispauljarram
ID: 35045923
Hi Martin,

Not quite no - GetDeviceCaps is a D3D9 concept used to check the capabilities of a D3D9 device.  I need to be able to determine the max version of DX supported by a card (i.e. is it 9,10,10.1 or 11?), without having to actually try and create the device itself.

Sorry for the late response, Experts-exchange have decided I no longer need to be emailed when responses to my questions are posted!  (not a single email for any of the 3 responses above).

Thanks,
Chris
0
 
LVL 10

Accepted Solution

by:
Martin_J_Parker earned 400 total points
ID: 35056708
There did seem to be some sort of maintenance going on this morning as I couldn't get into EE first thing - your response problems could be linked to that.

So you need a way of interrogating the graphics card's device driver to see what version is supported by the card.  I don't have a DX10 or DX11 compatible card available to me at the moment - but I'm wondering how much of that information might be squirrelled away in the registry somewhere - may be worth a regedit search to see what you can find on your system.

You might be able to get some information through .NET 4.0 - you seem to be able to check if hardware is at least DX9 capable - but I don't know if it's enough for your purposes:
http://msdn.microsoft.com/en-us/library/ms742196.aspx
http://msdn.microsoft.com/en-us/library/system.windows.media.rendercapability.aspx
0
 

Author Closing Comment

by:chrispauljarram
ID: 35087093
.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question