diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-05-30 15:20:35 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-05-30 15:20:35 +0000 |
| commit | 5a56e75e2f3c7243eb040590e73312c5fef98534 (patch) | |
| tree | e54be16682aed5f44db86484517606c64fb5ab01 /Graphics/GraphicsEngine | |
| parent | Added vertex buffer committing in Vk (diff) | |
| download | DiligentCore-5a56e75e2f3c7243eb040590e73312c5fef98534.tar.gz DiligentCore-5a56e75e2f3c7243eb040590e73312c5fef98534.zip | |
Implemented dynamic resource write-discard mapping
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/PipelineStateBase.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.h b/Graphics/GraphicsEngine/include/PipelineStateBase.h index 22c805f3..77c82cf5 100644 --- a/Graphics/GraphicsEngine/include/PipelineStateBase.h +++ b/Graphics/GraphicsEngine/include/PipelineStateBase.h @@ -158,6 +158,10 @@ public: { VERIFY(m_Strides[BuffSlot] >= TightStrides[BuffSlot], "Stride (", m_Strides[BuffSlot], ") explicitly specified for slot ", BuffSlot, " is smaller than the total element size (", TightStrides[BuffSlot], ")"); } + if(It->Stride == 0) + It->Stride = m_Strides[BuffSlot]; + else + VERIFY(m_Strides[BuffSlot] == It->Stride, "Incosistent stride"); } } |
