Advertisement

DirectX debug messages

Started by November 07, 2019 05:55 AM
2 comments, last by DividedByZero 5 years, 2 months ago

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 :)

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);

 

Aether3D Game Engine: https://github.com/bioglaze/aether3d

Blog: http://twiren.kapsi.fi/blog.html

Control

Advertisement

Thanks man, that looks like exactly what I need. 

Thanks heaps for your help.

 

This topic is closed to new replies.

Advertisement