# 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.

##### Share on other sites

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 on other sites

Thanks man, that looks like exactly what I need.

## Create an account

Register a new account

• 9
• 56
• 18