记录编译<Separable Subsurface Scattering demo>工程遇到的问题

1. Separable Subsurface Scattering demo 可以从 https://github.com/iryoku/separable-sss 下载下来,但是默认的sln 是 vs2010 版本的。

2. 解压,记得不要有中文路径,我这边直接安装了vs2012,直接打开,提示升级,然后点击升级,或者直接去 属性-> 配置属性-> 常规-> 平台工具集 , 设置 v110

3. 这个时候可以正常运行,但是最后会提示 Failed creating the Direct3D derive ,通过调式,可以发现 log 是这样的:

  

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

4. 奔溃报错直接定位在 DXUT.cpp  第3837行 不使用 pNewDeviceSettings->d3d10.CreateFlags,改为0,就可以直接不提示报错。

猜你喜欢

转载自www.cnblogs.com/lizhanzhao/p/11851613.html