Added GraphModuleManager::ReleaseModule(GraphModule *)

This commit is contained in:
2024-11-05 23:01:45 +08:00
parent f1f562c709
commit f6cc1ee619
2 changed files with 11 additions and 0 deletions

View File

@@ -97,6 +97,15 @@ GraphModuleManager::~GraphModuleManager()
}
}
void GraphModuleManager::ReleaseModule(GraphModule *gm)
{
if(!gm)
return;
graph_module_map.DeleteByValue(gm);
delete gm;
}
void GraphModuleManager::OnResize(const VkExtent2D &extent)
{
if(graph_module_map.IsEmpty())