Fixed issue with stale descriptor sets in Vulkan
assiduous
2 years ago
554 | 554 | |
555 | 555 | ResInfo.pResourceCache = &ResourceCache; |
556 | 556 | BindInfo.SetStaleSRBBit(SRBIndex); |
557 | // We must not clear entire ResInfo as DescriptorSetBaseInd and DynamicOffsetCount | |
558 | // are set by SetPipelineState(). | |
559 | ResInfo.vkSets = {}; | |
557 | 560 | |
558 | 561 | if (ResourceCache.GetNumDynamicBuffers() > 0) |
559 | 562 | BindInfo.SetDynamicBufferBit(SRBIndex); |