diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-05-27 21:23:36 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-05-27 21:23:36 +0000 |
| commit | 9a565edce90252e0bc401cd9a8ac5f5c35d3f336 (patch) | |
| tree | c3ad3d484c06879dd04785bd9a39805c3054bfde /Graphics/GraphicsEngineVulkan | |
| parent | Reworked dynamic descriptor set committing by batching updates (diff) | |
| download | DiligentCore-9a565edce90252e0bc401cd9a8ac5f5c35d3f336.tar.gz DiligentCore-9a565edce90252e0bc401cd9a8ac5f5c35d3f336.zip | |
Minor update
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp index 3fe1b66e..5c3f53ea 100644 --- a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp @@ -799,7 +799,8 @@ void ShaderResourceLayoutVk::CommitDynamicResources(const ShaderResourceCacheVk& WriteDescrSetIt == WriteDescrSetArr.end()) { auto DescrWriteCount = static_cast<Uint32>(std::distance(WriteDescrSetArr.begin(), WriteDescrSetIt)); - m_LogicalDevice.UpdateDescriptorSets(DescrWriteCount, WriteDescrSetArr.data(), 0, nullptr); + if(DescrWriteCount > 0) + m_LogicalDevice.UpdateDescriptorSets(DescrWriteCount, WriteDescrSetArr.data(), 0, nullptr); DescrImgIt = DescrImgInfoArr.begin(); DescrBuffIt = DescrBuffInfoArr.begin(); |
