diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-08-09 06:14:10 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-08-09 06:14:10 +0000 |
| commit | ec50729ae62dbb4bb2d32b7857bb2ddb030b6b1f (patch) | |
| tree | 018929b4d5b2c2c75f3a8bf9e3b3607e65c6ea1a /Graphics/GraphicsEngineD3D12 | |
| parent | Minor fix to input attachment test (diff) | |
| download | DiligentCore-ec50729ae62dbb4bb2d32b7857bb2ddb030b6b1f.tar.gz DiligentCore-ec50729ae62dbb4bb2d32b7857bb2ddb030b6b1f.zip | |
D3D12 backend: disabled warnings about render target and depth stencil clear value mismatch
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp b/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp index 74a69136..65991753 100644 --- a/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp +++ b/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp @@ -308,15 +308,26 @@ void EngineFactoryD3D12Impl::CreateDeviceAndContextsD3D12(const EngineD3D12Creat }; // Suppress individual messages by their ID - //D3D12_MESSAGE_ID DenyIds[] = {}; + D3D12_MESSAGE_ID DenyIds[] = + { + // D3D12 WARNING: ID3D12CommandList::ClearRenderTargetView: The clear values do not match those passed to resource creation. + // The clear operation is typically slower as a result; but will still clear to the desired value. + // [ EXECUTION WARNING #820: CLEARRENDERTARGETVIEW_MISMATCHINGCLEARVALUE] + D3D12_MESSAGE_ID_CLEARRENDERTARGETVIEW_MISMATCHINGCLEARVALUE, + + // D3D12 WARNING: ID3D12CommandList::ClearDepthStencilView: The clear values do not match those passed to resource creation. + // The clear operation is typically slower as a result; but will still clear to the desired value. + // [ EXECUTION WARNING #821: CLEARDEPTHSTENCILVIEW_MISMATCHINGCLEARVALUE] + D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_MISMATCHINGCLEARVALUE // + }; D3D12_INFO_QUEUE_FILTER NewFilter = {}; //NewFilter.DenyList.NumCategories = _countof(Categories); //NewFilter.DenyList.pCategoryList = Categories; NewFilter.DenyList.NumSeverities = _countof(Severities); NewFilter.DenyList.pSeverityList = Severities; - //NewFilter.DenyList.NumIDs = _countof(DenyIds); - //NewFilter.DenyList.pIDList = DenyIds; + NewFilter.DenyList.NumIDs = _countof(DenyIds); + NewFilter.DenyList.pIDList = DenyIds; hr = pInfoQueue->PushStorageFilter(&NewFilter); VERIFY(SUCCEEDED(hr), "Failed to push storage filter"); |
