Jump to content
  • Advertisement
Sign in to follow this  
akhin

DX Runtime querying and distributing

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

Hi ,

I would like to learn how I can programatically find the
DX runtime and the latest shader model supported in a target computer ?

For example, my demo requires at least DX SDK 2010 June runtimes and SM2.
And my purpose is detecting those and if they are not ok , stopping the execution.

Also what can be done if target machine does not have the required DX runtime version ?
Is distributing the specific DLLs of DX legal ?

Share this post


Link to post
Share on other sites
Advertisement
Distributing the DLLs isn't legal, the user will have to download them from MS. On the one hand this is a pain, on the other hand the user can always be 100% confident that they have the Real Thing.

Recent-ish versions of D3D come with various d3dx9_* DLLs (e.g. d3dx9_35.dll) so you can try a LoadLibrary on one of them to determine the installed version.

D3DXGetVertexShaderProfile and D3DXGetPixelShaderProfile can be used to determine the supported shader model.

Share this post


Link to post
Share on other sites
Thanks a lot ,


Regarding detecting recent versions , is there any other official way ?



Also I guess I need to find the d3dx9_* DLLs released with my specific DXRuntime ?

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!