使用DeviceCreationFlags.Debug启动SharpDX / DirectX应用程序

我正在尝试使用DeviceCreationFlags.Debug启动我的directX / SharpDX应用程序但是我在启动时遇到以下崩溃:

 SharpDX.SharpDXException: HRESULT: [0x80004005], Module: [General], ApiCode: [E_FAIL/Unspecified error], Message: Unspecified error at SharpDX.Result.CheckError() at SharpDX.Direct3D11.Device.CreateDevice(Adapter adapter, DriverType driverType, DeviceCreationFlags flags, FeatureLevel[] featureLevels) at SharpDX.Direct3D11.Device..ctor(Adapter adapter, DeviceCreationFlags flags, FeatureLevel[] featureLevels) at SharpDX.Toolkit.Graphics.GraphicsDevice..ctor(GraphicsAdapter adapter, DeviceCreationFlags flags, FeatureLevel[] featureLevels) at SharpDX.Toolkit.GamePlatform.CreateDevice(GraphicsDeviceInformation deviceInformation) at SharpDX.Toolkit.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo) at SharpDX.Toolkit.GraphicsDeviceManager.ChangeOrCreateDevice(Boolean forceCreate) at SharpDX.Toolkit.GraphicsDeviceManager.SharpDX.Toolkit.IGraphicsDeviceManager.CreateDevice() at SharpDX.Toolkit.Game.InitializeBeforeRun() at SharpDX.Toolkit.GameWindowDesktop.Run() at SharpDX.Toolkit.GamePlatform.Run(GameContext gameContext) at SharpDX.Toolkit.Game.Run(GameContext gameContext) at wrapper.Program.Main(String[] args) 

这是在Win7 32位上,我确实安装了June2010 DirextX SDK和Runtime以及适用于Windows 7的Windows SDK。

顺便说一下,这个问题源于这个问题: 使用MediaFoundation渲染h264video时SharpDX崩溃

从MSDN(D3D11_CREATE_DEVICE_FLAG页面):

D3D11_CREATE_DEVICE_DEBUG

创建支持调试层的设备。

要使用此标志,您必须安装D3D11 * SDKLayers.dll; 否则,设备创建失败。 要获取D3D11_1SDKLayers.dll,请安装适用于Windows 8的SDK。

这些文件不是June2010 SDK的一部分。 您必须在其他地方找到它们(例如在Windows 8 SDK中,如建议的那样)。

安装SDK的替代方法是安装Visual Studio 2012或更高版本。 它的安装将安装这些调试库。
这里提到了类似的问题: link =>说明3