使用Direct X和VS2012 [英] Working with Direct X and VS2012

查看:79
本文介绍了使用Direct X和VS2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我同时拥有用于桌面和Windows 8的Visual Studio 2012 Express,我想创建Direct X应用程序和游戏。我知道现在有Windows SDK,并且在VS 2012 exp for win8中,IDE已预先安装了SDK(我从新的Direct3D项目中知道)。我的问题是,如果我想为Windows桌面开发应用程序(使用VS2012exp),它是Windows SDK还是我需要安装Direct X SDK?我怎么知道我的显卡是否支持Direct X的哪个版本?任何Direct X SDK版本都可以与任何Direct X版本一起使用吗?如您所见,我是该领域的新手,任何评论都将有所帮助。谢谢您的宝贵时间。

I have both Visual Studio 2012 Express for Desktop and for Windows 8, and I wanted to create Direct X applications and games. I know that there is a Windows SDK now, and in VS 2012 exp for win8 the IDE is pre-installed with the SDK (I know that from the new Direct3D project). My question is, if I wanted to develop applications for Windows Desktop (using VS2012exp) does it come Windows SDK or do I need to install Direct X SDK? And how do I know if my graphics card support which version of Direct X? Will any Direct X SDK version work with any Direct X version? As you can see I am a newbie at that stuff and any comment would be helpful. Thanks for your time.

推荐答案


如果我想为Windows开发应用程序
桌面(使用VS2012exp)是Windows SDK还是我需要
安装Direct X SDK?

If I wanted to develop applications for Windows Desktop (using VS2012exp) does it come Windows SDK or do I need to install Direct X SDK?

是,并使用Windows 8 SDK 和Visual Studio 2012(或Windows 8.1 SDK和Visual Studio 2013预览)您可以开发任何东西

Yes, with Windows 8 SDK and Visual Studio 2012 (or Windows 8.1 SDK and Visual Studio 2013 preview) you can develop anything:


  • DirectX应用程序(Windows桌面和Windows应用商店)

  • 对于任何受支持的目标平台(x86,x64,ARM)

  • 对于任何相当现代的Windows操作系统(从Windows 2000 / XP开始)

  • 使用以下任何API版本:DirectX 9.3、10.0、10.1、11.0或11.1

  • DirectX applications (both, Windows Desktop and Windows Store)
  • for any supported target platform (x86, x64, ARM)
  • for any reasonably modern Windows operating system (starting from Windows 2000/XP)
  • using any of API versions: DirectX 9.3, 10.0, 10.1, 11.0, or 11.1

注意:


  • DirectX 9 API完全不同于10和11,它已过时。仅当您针对低于Vista的Windows版本时才使用它。

  • DirectX 11更像是DirectX 10的改进版。

  • 因此,在大多数情况下,您将要为DirectX 11.1编程。

而且不,您不需要安装DirectX SDK。 strong>已弃用(最新版本-2010年6月)。不要在新代码中使用它。仅当需要编译一些使用D3DX内容的旧代码(例如 ID3DXEffect,ID3DXFont,ID3DXLine,ID3DXMesh,ID3DXSprite )时,才使用它。

And no, you don't need to install DirectX SDK. It was deprecated (latest version - june 2010). Do not use it in new code. Use it only if you need to compile some old code which uses D3DX stuff (such as ID3DXEffect, ID3DXFont, ID3DXLine, ID3DXMesh, ID3DXSprite), e.g. samples from books or different SDK samples.


我怎么知道我的显卡是否支持Direct
X的哪个版本?

And how do I know if my graphics card support which version of Direct X?

好吧,如果我们谈论的是您的视频卡,则可以查看您的卡供应商或GPU供应商的站点。或任何信息实用程序,例如 GPU-Z

Well, if we talking about your videocard, you can look at your card vendor's or GPU vendor's site. Or any of informational utilities, such as GPU-Z.

如果我们谈论的是最终用户硬件,则从DirectX 10-11开始,有 功能级别 。因此,即使您正在使用最新的API(目前是DirectX 11.1),也可以定位旧硬件(例如,如果使用 D3D_FEATURE_LEVEL_9_3 D3D_FEATURE_LEVEL_10_0 及更高版本将被禁用。)

If we talking about end-user hardware, since DirectX 10-11 there are feature levels. So even if you are using latest API (DirectX 11.1 at this moment), you can target old hardware (for example, if you using D3D_FEATURE_LEVEL_9_3, newer features, from D3D_FEATURE_LEVEL_10_0 and higher will be disabled).

请注意,要 develop 获取最新的 功能级别 需要支持它的GPU。您可以在 WARP设备上运行和调试应用程序(运行缓慢,仅用于调试目的,不适用于最终用户版本)。例如,您可以使用旧的DirectX 10卡(Shader型号4.0),但定位到DirectX 11(Shader型号5.0)

Note, that to develop for latest feature level you don't need GPU that supports it. You can run and debug application on WARP device (ivery slow and meant for debugging purposes only, not for end-user release). For example, you can have old DirectX 10 card (Shader model 4.0), but target to DirectX 11 (Shader model 5.0)


Direct X SDK版本是否可以与任何Direct X版本一起使用?

Will any Direct X SDK version work with any Direct X version?

最新的DirectX SDK(2010年6月)最多支持DirectX11。没有DirectX 11.1支持。

Latest DirectX SDK (june 2010) supports DirectX up to 11. No DirectX 11.1 support.

这篇关于使用Direct X和VS2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆