git.s-ol.nu ~forks/DiligentCore / a1c7374
Fixed issue with stale descriptor sets in Vulkan assiduous 4 months ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
554554
555555 ResInfo.pResourceCache = &ResourceCache;
556556 BindInfo.SetStaleSRBBit(SRBIndex);
557 // We must not clear entire ResInfo as DescriptorSetBaseInd and DynamicOffsetCount
558 // are set by SetPipelineState().
559 ResInfo.vkSets = {};
557560
558561 if (ResourceCache.GetNumDynamicBuffers() > 0)
559562 BindInfo.SetDynamicBufferBit(SRBIndex);