How to install D3D11 SDK Layers for Windows 10 offline

烈酒焚心 提交于 2019-11-29 15:42:51

问题


I got the following error when I was debugging my D3D application in VS2015.

D3D11CreateDevice: Flags (0x2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not present on the system. These flags must be removed, or the Windows 10 SDK must be installed. Flags include: D3D11_CREATE_DEVICE_DEBUG

I know I need to enable Graphics Tools in Win10 or run Dism /online /add-capability /capabilityname:Tools.Graphics.DirectX~~~~0.0.1.0 to enable it.

But the machine I am working on are not allowed to connect to the internet. Is there a way to enable that offline?

Thanks a lot.


回答1:


For the November 2015 update (build 10586) of Windows 10, you can find the Feature On Demand CABs for the Graphics Tools package here. You can install it via dism as noted in the documentation with that package.

Keep in mind that there's a lot of stuff in Windows 10 that's a number of 'feature on demand' parts of Windows including .NET 3.5, language packs, etc.




回答2:


Not sure, but maybe the Graphic tools can ben installed from the iso of your Win10 ?



来源:https://stackoverflow.com/questions/34318515/how-to-install-d3d11-sdk-layers-for-windows-10-offline

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