finding what directX version you GPU can use

Started by
2 comments, last by kubera 11 years, 2 months ago

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

Advertisement

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.

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.

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

This topic is closed to new replies.

Advertisement