最近不知道什么时候开始D3D11CreateDevice返回E_FAIL

    查了一下MSDN,说这个函数返回E_FAIL表示:Attempted to create a device with the debug layer enabled and the layer is not installed.一个临时解决方法就是不要带debug layer创建设备。

    最后上网查了一下,发现是安装KB2670838引起的,KB2670838详细说明里也有提到debug layer的问题及解决方法,http://support.microsoft.com/kb/2670838/en-us?fr=1,其中一个方法就是安装Windows 8 SDK。

原文地址:https://www.cnblogs.com/rickerliang/p/3087177.html