diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 17:37:00 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 17:37:00 +0000 |
| commit | a1c73742f17fe1b7acdb413e49b730352f62bdc0 (patch) | |
| tree | bc504d46d8be1d8e598c8e244b3093bd12a24f06 /Graphics/GraphicsEngineVulkan | |
| parent | Fixed Windows 8.1 build issue and a couple of clang warnings (diff) | |
| download | DiligentCore-a1c73742f17fe1b7acdb413e49b730352f62bdc0.tar.gz DiligentCore-a1c73742f17fe1b7acdb413e49b730352f62bdc0.zip | |
Fixed issue with stale descriptor sets in Vulkan
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 32f68f9d..2be6ea63 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -555,6 +555,9 @@ void DeviceContextVkImpl::CommitShaderResources(IShaderResourceBinding* pShaderR ResInfo.pResourceCache = &ResourceCache; BindInfo.SetStaleSRBBit(SRBIndex); + // We must not clear entire ResInfo as DescriptorSetBaseInd and DynamicOffsetCount + // are set by SetPipelineState(). + ResInfo.vkSets = {}; if (ResourceCache.GetNumDynamicBuffers() > 0) BindInfo.SetDynamicBufferBit(SRBIndex); |
