during initialisation of my D3D stuff, I call the following function:
hr = D3D11CreateDevice(nullptr,gDriverTypes[DriverTypeIndex],nullptr,
#ifdef _DEBUG
D3D11_CREATE_DEVICE_DEBUG,
#else
0,
#endif
gFeatureLevels,gNumFeatureLevels,D3D11_SDK_VERSION,&lDevice,&lFeatureLevel,&lImmediateContext);
In debug build, to get additional information about possible D3D errors, I set the flag D3D11_CREATE_DEVICE_DEBUG. Without any further actions this lets my application terminate immediately.
So according to Use D3D11 debug layer with VS2013 on Windows 10 I tried to install the required D3D-debug stuff by calling
Dism /online /add-capability /capabilityname:Tools.Graphics.DirectX~~~~0.0.1.0
within a admin-console on latest windows 10. Unfortunately this fails with
Deployment Image Servicing and Management tool
Version: 10.0.18362.1316
Image Version: 10.0.18363.1316
[==========================100.0%==========================]
Error: 0x8024500c
DISM failed. No operation was performed.
The log file is also not very helpful, it contains loads of error messages and error codes one can't understand easily.
So...are there alternative ways to get the D3D debug stuff that is required to work with D3D11_CREATE_DEVICE_DEBUG enabled?
Thanks :-)