3

While working with directx11 APIs I frequently getting a warning stated below but I can see Windows SDK 10 is present in the system (C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools) as well as selected that version in VS IDE.

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 have to debug directx11 objects. I need to get rid from that warning. Would anyone please help to fix this issue?

FIX: Graphics Tools installed offline following this post and the warning is gone.

But now it throws exception from D3D11CreateDevice() but the flag D3D11_CREATE_DEVICE_DEBUG is added or not it throws following exception. How to fix this exception?

Exception thrown at 0x27A7DD55 (d3d11_3SDKLayers.dll) in xxx.exe: 0xC0000005: Access violation reading location 0x00000000.

3
  • What operating system are you using? Also, what is your code calling D3D11CreateDevice. See Anatomy of Direct3D 11 Create Device. Commented Feb 11, 2019 at 1:52
  • Windows 10 Enterprise Version 1803 Commented Feb 12, 2019 at 6:58
  • 1
    So you have installed the Graphics Tools which was your original issue--without it you don't have the debug device installed--, but you can still have bugs in your code. What does your code for calling D3D11CreateDevice look like because that's what's probably wrong. Commented Feb 12, 2019 at 18:52

2 Answers 2

1

I have uninstalled then installed the Graphics Tools again. Then followed the your post then it showed debug layer outputs. I can see DXGI error and warnings now. Thank you.

Sign up to request clarification or add additional context in comments.

Comments

0

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

This issue was encountered during a Qt Multimedia widget development and it has been resolved by following steps,

  1. Updated intel graphic drivers - Refer this for more details https://www.intel.com/content/www/us/en/support/articles/000005629/graphics.html

  2. Created the device to support the debug layer. Follow this for Windows 10 & 11, Go to the Settings panel -> under System -> Apps & features -> Manage optional Features -> Add a feature, and then look for "Graphics Tools" & install.

  3. Finally reboot the system & try.

Comments

Your Answer

Draft saved
Draft discarded

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.