summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
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/GraphicsEngineVulkan
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/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
index b4cd4dc9..5cbd0ada 100644
--- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
@@ -292,9 +292,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 *pBufferVk = CurrStream.pBuffer.RawPtr<BufferVkImpl>();
+ auto* pBufferVk = CurrStream.pBuffer.RawPtr();
if (!pBufferVk->CheckAccessFlags(VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT))
BufferMemoryBarrier(*pBufferVk, VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT);
}
@@ -313,10 +313,10 @@ namespace Diligent
bool DynamicBufferPresent = false;
for ( UINT slot = 0; slot < m_NumVertexStreams; ++slot )
{
- auto &CurrStream = m_VertexStreams[slot];
+ auto& CurrStream = m_VertexStreams[slot];
VERIFY( CurrStream.pBuffer, "Attempting to bind a null buffer for rendering" );
- auto *pBufferVk = CurrStream.pBuffer.RawPtr<BufferVkImpl>();
+ auto* pBufferVk = CurrStream.pBuffer.RawPtr();
if (pBufferVk->GetDesc().Usage == USAGE_DYNAMIC)
{
DynamicBufferPresent = true;