Fix destruction order to avoid memory leaks reported by VMA

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:33 +01:00
parent c0c0371dbc
commit 6976281322
5 changed files with 26 additions and 13 deletions
+3 -1
View File
@@ -148,10 +148,10 @@ public:
vk::raii::CommandBuffer cb = nullptr;
std::vector<std::shared_ptr<void>> resources;
// Uniform buffer for per-view and per-instance data
// host visible, host coherent
buffer_allocation staging_buffer;
// device local
// buffer_allocation uniform_buffer;
};
@@ -181,4 +181,6 @@ public:
{
return default_material;
}
void wait_idle();
};