summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-25 04:45:59 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-25 04:45:59 +0000
commit946884fb264969aa03e5d266d2349c8a74e5cf55 (patch)
treed70f8ec7977f829588e7bf8250ab1040981d3df0 /Graphics/GraphicsEngineD3D12
parentUpdated DeviceContextBase to use final types for pipeline state, buffers and ... (diff)
downloadDiligentCore-946884fb264969aa03e5d266d2349c8a74e5cf55.tar.gz
DiligentCore-946884fb264969aa03e5d266d2349c8a74e5cf55.zip
Updated VertexStreamInfo to use final buffer implementation type
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
index f490ff9a..2d660718 100644
--- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
@@ -249,9 +249,9 @@ namespace Diligent
{
for( UINT Buff = 0; Buff < m_NumVertexStreams; ++Buff )
{
- auto &CurrStream = m_VertexStreams[Buff];
+ auto& CurrStream = m_VertexStreams[Buff];
VERIFY( CurrStream.pBuffer, "Attempting to bind a null buffer for rendering" );
- auto *pBufferD3D12 = static_cast<BufferD3D12Impl*>(CurrStream.pBuffer.RawPtr());
+ auto* pBufferD3D12 = CurrStream.pBuffer.RawPtr();
if(!pBufferD3D12->CheckAllStates(D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER))
GraphCtx.TransitionResource(pBufferD3D12, D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER);
}
@@ -269,11 +269,11 @@ namespace Diligent
bool DynamicBufferPresent = false;
for( UINT Buff = 0; Buff < m_NumVertexStreams; ++Buff )
{
- auto &CurrStream = m_VertexStreams[Buff];
- auto &VBView = VBViews[Buff];
+ auto& CurrStream = m_VertexStreams[Buff];
+ auto& VBView = VBViews[Buff];
VERIFY( CurrStream.pBuffer, "Attempting to bind a null buffer for rendering" );
- auto *pBufferD3D12 = static_cast<BufferD3D12Impl*>(CurrStream.pBuffer.RawPtr());
+ auto *pBufferD3D12 = CurrStream.pBuffer.RawPtr();
if (pBufferD3D12->GetDesc().Usage == USAGE_DYNAMIC)
{
DynamicBufferPresent = true;