diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-05 04:10:35 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-05 04:10:35 +0000 |
| commit | 000fdae6ccfe0067b8621400b3c92cab1d86cedc (patch) | |
| tree | 527ff57608662df4c54efc91d0344f4d197cea00 /Graphics/GraphicsEngineD3D12 | |
| parent | Replaced SET_RENDER_TARGETS_FLAGS with RESOURCE_STATE_TRANSITION_MODE. (diff) | |
| download | DiligentCore-000fdae6ccfe0067b8621400b3c92cab1d86cedc.tar.gz DiligentCore-000fdae6ccfe0067b8621400b3c92cab1d86cedc.zip | |
Minor code improvements in Vk backend
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index 9fdaf3bb..61456e50 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -120,10 +120,16 @@ namespace Diligent { if (m_State.NumCommands != 0) { - LOG_ERROR_MESSAGE(m_bIsDeferred ? - "There are outstanding commands in deferred context #", m_ContextId, " being destroyed, which indicates that FinishCommandList() has not been called." : - "There are outstanding commands in the immediate context being destroyed, which indicates the context has not been Flush()'ed.", - " This is unexpected and may result in synchronization errors"); + if (m_bIsDeferred) + { + LOG_ERROR_MESSAGE("There are outstanding commands in deferred context #", m_ContextId, " being destroyed, which indicates that FinishCommandList() has not been called." + " This may cause synchronization issues."); + } + else + { + LOG_ERROR_MESSAGE("There are outstanding commands in the immediate context being destroyed, which indicates the context has not been Flush()'ed.", + " This may cause synchronization issues."); + } } if (m_bIsDeferred) @@ -802,8 +808,8 @@ namespace Diligent else { for( Uint32 rt = 0; rt < NumRenderTargets; ++rt ) - ppRTVs[rt] = m_pBoundRenderTargets[rt].RawPtr<ITextureViewD3D12>(); - pDSV = m_pBoundDepthStencil.RawPtr<ITextureViewD3D12>(); + ppRTVs[rt] = m_pBoundRenderTargets[rt].RawPtr(); + pDSV = m_pBoundDepthStencil.RawPtr(); } auto& CmdCtx = GetCmdContext(); |
