diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-07 17:02:28 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-07 17:02:28 +0000 |
| commit | 195dfd3a09bc917135deeb4a4450638ae47997d1 (patch) | |
| tree | 5b827c7e71cbc34e7e927d8dc10873acefc3d8a1 /Graphics/GraphicsEngineD3D11 | |
| parent | Improved handling input layout elements in the pipeline state (diff) | |
| download | DiligentCore-195dfd3a09bc917135deeb4a4450638ae47997d1.tar.gz DiligentCore-195dfd3a09bc917135deeb4a4450638ae47997d1.zip | |
Improved buffer stride management in PSO
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
| -rwxr-xr-x | Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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
|
