Launching SharpDX/DirectX app with DeviceCreationFlags.Debug

不羁的心 提交于 2019-12-02 04:18:10

From the MSDN (page on D3D11_CREATE_DEVICE_FLAG):

D3D11_CREATE_DEVICE_DEBUG

Creates a device that supports the debug layer.

To use this flag, you must have D3D11*SDKLayers.dll installed; otherwise, device creation fails. To get D3D11_1SDKLayers.dll, install the SDK for Windows 8.

These files are not part of the June2010 SDK. You have to find them somewhere else (i.e. in the Windows 8 SDK, as suggested).

Alternative to installing the SDK is installing Visual Studio 2012 or newer. Its installation will install these debug libraries.
Similar problem was mentioned here: link => explanation 3

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