summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-25 05:21:40 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-25 05:21:40 +0000
commit7cf190803b1eee946e068d0c92d383d9e17e8e97 (patch)
treec3fdd336683b96ceaf8a80bb5a98884348beb493 /Graphics/GraphicsEngineD3D11
parentUpdated VertexStreamInfo to use final buffer implementation type (diff)
downloadDiligentCore-7cf190803b1eee946e068d0c92d383d9e17e8e97.tar.gz
DiligentCore-7cf190803b1eee946e068d0c92d383d9e17e8e97.zip
Removed unnecessary conversion from m_pPipelineState to target implementation type in device context implementations
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp
index d810911e..bc0222c8 100644
--- a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp
@@ -683,20 +683,19 @@ namespace Diligent
}
#endif
- auto* pPipelineStateD3D11 = m_pPipelineState.RawPtr();
#ifdef _DEBUG
- if (pPipelineStateD3D11->GetDesc().IsComputePipeline)
+ if (m_pPipelineState->GetDesc().IsComputePipeline)
{
LOG_ERROR("No graphics pipeline state is bound");
return;
}
#endif
- auto* pd3d11InputLayout = pPipelineStateD3D11->GetD3D11InputLayout();
+ auto* pd3d11InputLayout = m_pPipelineState->GetD3D11InputLayout();
if( pd3d11InputLayout != nullptr && !m_bCommittedD3D11VBsUpToDate )
{
- VERIFY( m_NumVertexStreams >= pPipelineStateD3D11->GetNumBufferSlotsUsed(), "Currently bound pipeline state \"", pPipelineStateD3D11->GetDesc().Name, "\" expects ", pPipelineStateD3D11->GetNumBufferSlotsUsed(), " input buffer slots, but only ", m_NumVertexStreams, " is bound");
- CommitD3D11VertexBuffers(pPipelineStateD3D11);
+ VERIFY( m_NumVertexStreams >= m_pPipelineState->GetNumBufferSlotsUsed(), "Currently bound pipeline state \"", m_pPipelineState->GetDesc().Name, "\" expects ", m_pPipelineState->GetNumBufferSlotsUsed(), " input buffer slots, but only ", m_NumVertexStreams, " is bound");
+ CommitD3D11VertexBuffers(m_pPipelineState);
}
if( DrawAttribs.IsIndexed )