diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 32f68f9..2be6ea6 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -555,6 +555,9 @@ 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);