本文介绍了我应该为DirectX 11使用什么SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用最新版本的DirectX SDK需要什么感到非常困惑。

I am very confused on what I need in order to use the latest version of the DirectX SDK.

有DirectX SDK(2010年6月)显然已经废弃,还有Windows 8.1的Windows SDK。

There is the DirectX SDK (June 2010), which is apparently deprecated and there is the Windows SDK for Windows 8.1.

令人困惑的是,我无法确定Windows SDK for 8.1是否可以使用Windows 7和Visual Studio 2013 for Desktop,或者如果我必须请使用Windows 7和Visual Studio 2013 for Desktop的DirectX SDK(2010年6月)。

What is so confusing is that I can't figure out if the Windows SDK for 8.1 will work using Windows 7 and Visual Studio 2013 for Desktop, or if I have to use the DirectX SDK (June 2010) with Windows 7 and Visual Studio 2013 for Desktop.

此外,如果我使用8.1的Windows SDK,如何将它包含在我的Visual Studio项目中。任何帮助?

Also, if I use Windows SDK for 8.1, how do I include it in my Visual Studio Projects. Any help?

推荐答案

DirectX SDK已从Windows 7.0版本开始,除非你需要一些不推荐的功能,例如DXUT,特别是运行时着色器编译器,你就可以使用Windows SDK运行。

The DirectX SDK has been rolled into the Windows SDK starting with version 7.0. Unless you need certain deprecated features such as DXUT, specifically the runtime shader compiler, you'll be fine just running with the Windows SDK.

然而,如果你想使用DirectX SDK的已弃用功能,您需要添加两个SDK,将Windows SDK设置为具有比DX SDK更高的优先级。如果您同时包含这两个并查看重新定义警告,那么您按错误的顺序包含它们。

If, however, you want to use the deprecated features of the DirectX SDK, you'll need to include both SDKs, with the Windows SDK set to have higher priority than the DX SDK. If you include both and see a redefinition warning, then you included them in the wrong order.

这篇关于我应该为DirectX 11使用什么SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 23:01