- postponed destruction of Vulkan resources
Provided uniform way to handle lifetime of some of Vulkan resources This helps to avoid issues like descriptor set that outlives its pool https://forum.zdoom.org/viewtopic.php?t=64341
This commit is contained in:
parent
8d36f0a0cf
commit
dffe45835d
4 changed files with 29 additions and 16 deletions
|
|
@ -33,6 +33,15 @@ void VkRenderPassManager::RenderBuffersReset()
|
|||
|
||||
void VkRenderPassManager::TextureSetPoolReset()
|
||||
{
|
||||
if (auto fb = GetVulkanFrameBuffer())
|
||||
{
|
||||
auto &deleteList = fb->FrameDeleteList;
|
||||
|
||||
for (auto &desc : TextureDescriptorPools)
|
||||
{
|
||||
deleteList.DescriptorPools.push_back(std::move(desc));
|
||||
}
|
||||
}
|
||||
TextureDescriptorPools.clear();
|
||||
TextureDescriptorSetsLeft = 0;
|
||||
TextureDescriptorsLeft = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue