What can cause D3D11CreateDevice() to fail with E_FAIL?

隐身守侯 提交于 2019-11-30 20:39:10

The problem seems to be that you don't have Direct X Debug Runtime installed (there is an option to install it when installing Direct X SDK), but just the regular Direct X Runtime. The Direct X Runtime provides less overhead and is faster, but you can't use it to debug the applications.

--------------------
DirectX Debug Levels
--------------------
Direct3D:    0/4 (retail)
DirectDraw:  0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay:  0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow:  0/6 (retail)

Or if you have it installed, it is not turned on. You might find some useful information how to switch between Debug and Release version of Direct X Runtime.

The latest version of the SDK Debug Layer is not in the legacy DirectX SDK (June 2010) release. You need to install the standalone Windows 8.0 SDK, Visual Studio 2012, or you can just install the VS 2012 Remote Debugging Tools package.

http://blogs.msdn.com/b/chuckw/archive/2013/02/26/directx-11-1-and-windows-7-update.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!