0
votes

I'm learning dx11 and I have been trying to import 3D models into my little game, I have been trying to copy the import method from the DX11 HLSL sample, so I copied the DXUT folder into my project, but for some reason It's giving me an that 'GetVersionEx' is depraciated. I am a begginer programmer, I looked into the problem and apparentl I should be using 'VerifyVersionInfo' I looked at examples but I don't know how to use them to fix it using that.

And I'm wondering why is this error is not coming up when I try to run the Sample.

1

1 Answers

0
votes

The first thing to know is that the venerable DirectX SDK has been deprecated, and as you are using VS 2013 or VS 2015 based on the warning you are getting, you already have the Windows 8 SDK which has most of what you need to get started. See MSDN for more information, and take a look at this post and this post.

The warning you are getting from VS 2013/2015 about GetVersionEx is an unrelated but important issue. The fact that you are seeing it when building DXUT from the legacy DirectX SDK is because that code hasn't been updated since VS 2010 was shipped. See MSDN and this post.

You have a number of options for getting utility code for Direct3D 11.

  • The latest version of DXUT can be found at GitHub. This version does not require the legacy DirectX SDK to build and works with VS 2013 and VS 2015. For more on why you might or might not want to use DXUT can be found here.

  • Similarly the latest version of Effects for Direct3D 11 is on GitHub, and again works on VS 2013 / 2015. More information and a number of important disclaimers can be found here.

  • If you are starting fresh, I recommend you avoid using DXUT or FX11, and instead focus on using the DirectX Tool Kit. See the tutorials for it including the Rendering a model lesson.

  • For model and texture processing, you should see the DirectXMesh, DirectXTex, and Content Exporter projects.