Jump to content

View more

Image of the Day

New ninja for my game.
#screenshotsaturday #gamedev #indiedev #IndieDevHour
https://t.co/sJdnPuiVgh
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

finding what directX version you GPU can use

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 the dodger uk   Members   

148
Like
0Likes
Like

Posted 18 January 2013 - 01:09 PM

i need to know if  my GPU can run directx10 or 11 through code.

 

i have a project written in dx11 , and so  the shaders are dx11

 

but i am running it on a dx10 machine at the moment  , so i need to convert the sahders to dx10

 

 

i want the  project to  detect what version of dx it can run in the GPU though code 

 

any ideas



#2 ATEFred   Members   

1651
Like
2Likes
Like

Posted 18 January 2013 - 01:17 PM

You can detect the supported feature level of your GPU (9/10/11) when you create the device. Just don't specify a specific feature level (pass NULL for the feature level array parameter) and check the pFeatureLevel value the method will output. For more details, look at the docs for the D3D11CreateDevice function.  



#3 MJP   Moderators   

19168
Like
2Likes
Like

Posted 18 January 2013 - 01:36 PM

There's no reason to use DX10, any GPU that supports DX10 can be targeted with DX11. Like ATEFred mentioned you can check the feature level of the device to see what features are supported.



#4 kubera   Members   

1568
Like
0Likes
Like

Posted 20 January 2013 - 06:30 AM

This method can not validate the GPU against the 11.1 feature level.

Please consider reading the thread below:

http://xboxforums.create.msdn.com/forums/p/99471/592501.aspx#592501






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.