mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed issue#123
This commit is contained in:
parent
e782f2f873
commit
a8abead615
1 changed files with 23 additions and 16 deletions
|
@ -519,25 +519,32 @@ namespace bgfx
|
||||||
{
|
{
|
||||||
ID3D11InfoQueue* infoQueue;
|
ID3D11InfoQueue* infoQueue;
|
||||||
hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue);
|
hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue);
|
||||||
BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Unable to create Direct3D11 device.");
|
|
||||||
|
|
||||||
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_CORRUPTION, true);
|
if (SUCCEEDED(hr) )
|
||||||
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_ERROR, true);
|
|
||||||
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_WARNING, false);
|
|
||||||
|
|
||||||
D3D11_INFO_QUEUE_FILTER filter;
|
|
||||||
memset(&filter, 0, sizeof(filter) );
|
|
||||||
|
|
||||||
D3D11_MESSAGE_CATEGORY categies[] =
|
|
||||||
{
|
{
|
||||||
D3D11_MESSAGE_CATEGORY_STATE_SETTING,
|
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_CORRUPTION, true);
|
||||||
D3D11_MESSAGE_CATEGORY_EXECUTION,
|
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_ERROR, true);
|
||||||
};
|
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_WARNING, false);
|
||||||
filter.DenyList.NumCategories = BX_COUNTOF(categies);
|
|
||||||
filter.DenyList.pCategoryList = categies;
|
|
||||||
infoQueue->PushStorageFilter(&filter);
|
|
||||||
|
|
||||||
DX_RELEASE(infoQueue, 3);
|
D3D11_INFO_QUEUE_FILTER filter;
|
||||||
|
memset(&filter, 0, sizeof(filter) );
|
||||||
|
|
||||||
|
D3D11_MESSAGE_CATEGORY categies[] =
|
||||||
|
{
|
||||||
|
D3D11_MESSAGE_CATEGORY_STATE_SETTING,
|
||||||
|
D3D11_MESSAGE_CATEGORY_EXECUTION,
|
||||||
|
};
|
||||||
|
filter.DenyList.NumCategories = BX_COUNTOF(categies);
|
||||||
|
filter.DenyList.pCategoryList = categies;
|
||||||
|
infoQueue->PushStorageFilter(&filter);
|
||||||
|
|
||||||
|
DX_RELEASE(infoQueue, 3);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// InfoQueue QueryInterface will fail when AMD GPU Perfstudio 2 is present.
|
||||||
|
setGraphicsDebuggerPresent(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UniformHandle handle = BGFX_INVALID_HANDLE;
|
UniformHandle handle = BGFX_INVALID_HANDLE;
|
||||||
|
|
Loading…
Reference in a new issue