Jump to content
  • Advertisement
Sign in to follow this  
DividedByZero

DirectX debug messages

Recommended Posts

Hi Guys,

I am wondering if it is possible to supress directX debug messages temporarily and then re-enable them.

I am getting a warning for a call I am making which I'll admit is a little unorthodox for what I am doing, but the behavior is intended. So, I'd like to disable the message for that call.

Thanks in advance :)

Share this post


Link to post
Share on other sites
Advertisement

It's possible by using ID3D12InfoQueue:

 

device->QueryInterface( ... d3dInfoQueue ... );

D3D12_MESSAGE_ID hide[] =
{
    D3D12_MESSAGE_ID_MAP_INVALID_NULLRANGE,
    D3D12_MESSAGE_ID_UNMAP_INVALID_NULLRANGE,
};

D3D12_INFO_QUEUE_FILTER filter = {};
filter.DenyList.NumIDs = 2;
filter.DenyList.pIDList = hide;
d3dInfoQueue->AddStorageFilterEntries(&filter);

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!