From 946884fb264969aa03e5d266d2349c8a74e5cf55 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 24 Jul 2018 21:45:59 -0700 Subject: Updated VertexStreamInfo to use final buffer implementation type --- Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') 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(); + 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(); + auto* pBufferVk = CurrStream.pBuffer.RawPtr(); if (pBufferVk->GetDesc().Usage == USAGE_DYNAMIC) { DynamicBufferPresent = true; -- cgit v1.2.3