diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-07-02 16:36:35 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-07-02 16:36:35 +0000 |
| commit | a403685e6148002f1a4457e39b457e0497c22605 (patch) | |
| tree | eb05e38744f0a792cd0ca92c337b788d856a538e /Graphics/GraphicsEngineD3D11 | |
| parent | Minor update to DeviceContextBase::SetRenderTargets() (diff) | |
| download | DiligentCore-a403685e6148002f1a4457e39b457e0497c22605.tar.gz DiligentCore-a403685e6148002f1a4457e39b457e0497c22605.zip | |
Improved bound RTV,DSV - PSO mismatch reporting in D3D11 backend
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
| -rw-r--r-- | Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp index 862474fc..f1d4d295 100644 --- a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp @@ -1442,14 +1442,14 @@ namespace Diligent const auto &PSODesc = m_pPipelineState->GetDesc(); const auto &GraphicsPipeline = PSODesc.GraphicsPipeline; - if (/*GraphicsPipeline.NumRenderTargets != 0 && */GraphicsPipeline.NumRenderTargets != NumBoundRTVs) + if (GraphicsPipeline.NumRenderTargets != NumBoundRTVs) { - LOG_WARNING_MESSAGE("Number of currently bound render targets (", NumBoundRTVs, ") does not match the number of outputs specified by the PSO \"", PSODesc.Name, "\" (", GraphicsPipeline.NumRenderTargets, "). This is OK on D3D11 device, but will most likely be an issue on D3D12." ); + LOG_WARNING_MESSAGE("Number of currently bound render targets (", NumBoundRTVs, ") does not match the number of outputs specified by the PSO \"", PSODesc.Name, "\" (", GraphicsPipeline.NumRenderTargets, "). This is OK on D3D11 device, but will be an issue on Vulkan and D3D12." ); } - if (GraphicsPipeline.DepthStencilDesc.DepthEnable && BoundDSVFormat != GraphicsPipeline.DSVFormat) + if (BoundDSVFormat != GraphicsPipeline.DSVFormat) { - LOG_WARNING_MESSAGE("Currently bound depth-stencil buffer format (", GetTextureFormatAttribs(BoundDSVFormat).Name, ") does not match the DSV format specified by the PSO \"", PSODesc.Name, "\" (", GetTextureFormatAttribs(GraphicsPipeline.DSVFormat).Name, "). This is OK on D3D11 device, but will most likely be an issue on D3D12." ); + LOG_WARNING_MESSAGE("Currently bound depth-stencil buffer format (", GetTextureFormatAttribs(BoundDSVFormat).Name, ") does not match the DSV format specified by the PSO \"", PSODesc.Name, "\" (", GetTextureFormatAttribs(GraphicsPipeline.DSVFormat).Name, "). This is OK on D3D11 device, but will be an issue on Vulkan and D3D12." ); } for (Uint32 rt = 0; rt < NumBoundRTVs; ++rt) @@ -1458,7 +1458,7 @@ namespace Diligent auto PSOFmt = GraphicsPipeline.RTVFormats[rt]; if (BoundFmt != PSOFmt) { - LOG_WARNING_MESSAGE("Render target bound to slot ", rt, " (", GetTextureFormatAttribs(BoundFmt).Name, ") does not match the RTV format specified by the PSO \"", PSODesc.Name, "\" (", GetTextureFormatAttribs(PSOFmt).Name, "). This is OK on D3D11 device, but will most likely be an issue on D3D12." ); + LOG_WARNING_MESSAGE("Render target bound to slot ", rt, " (", GetTextureFormatAttribs(BoundFmt).Name, ") does not match the RTV format specified by the PSO \"", PSODesc.Name, "\" (", GetTextureFormatAttribs(PSOFmt).Name, "). This is OK on D3D11 device, but will be an issue on Vulkan and D3D12." ); } } } |
