summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp3
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);