我收到此錯誤:
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
error: 0x887a002d
我試過了:
- 安裝圖形工具
- 重新安裝 Windows 10 SDK
- 完成以上操作後重啟
相關代碼:
DX_CHECK(D3D11CreateDevice(nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr,
creation_flags, feature_levels,
_countof(feature_levels), D3D11_SDK_VERSION,
&device_, &feature_level, &context_));