From 195dfd3a09bc917135deeb4a4450638ae47997d1 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 7 Mar 2019 09:02:28 -0800 Subject: Improved buffer stride management in PSO --- Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineD3D11') diff --git a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp index f177586d..df4a59c3 100755 --- a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp @@ -687,13 +687,12 @@ namespace Diligent bool BindVBs = m_NumVertexStreams != m_NumCommittedD3D11VBs; - const auto* Strides = pPipelineStateD3D11->GetBufferStrides(); for (UINT Slot = 0; Slot < m_NumVertexStreams; ++Slot) { auto& CurrStream = m_VertexStreams[Slot]; auto* pBuffD3D11Impl = CurrStream.pBuffer.RawPtr(); ID3D11Buffer* pd3d11Buffer = pBuffD3D11Impl ? pBuffD3D11Impl->m_pd3d11Buffer : nullptr; - auto Stride = Strides[Slot]; + auto Stride = pPipelineStateD3D11->GetBufferStride(Slot); auto Offset = CurrStream.Offset; // It is safe to perform raw pointer check because device context keeps -- cgit v1.2.3