Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 628
  • Last Modified:

How do I check version of DX supported by hardware?

Hi experts,

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

Thanks
0
chrispauljarram
Asked:
chrispauljarram
  • 3
  • 3
2 Solutions
 
Martin_J_ParkerCommented:
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
 
mwochnickCommented:
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
 
chrispauljarramAuthor Commented:
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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
chrispauljarramAuthor Commented:
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
 
Martin_J_ParkerCommented:
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
 
chrispauljarramAuthor Commented:
.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now