Nothing works

This commit is contained in:
Dynamitos
2024-10-14 18:14:08 +02:00
parent 98a7e16756
commit 62d6662ad1
14 changed files with 244 additions and 187 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ DescriptorPool::DescriptorPool(PGraphics graphics, PDescriptorLayout layout)
DescriptorPool::~DescriptorPool() {
for (size_t i = 0; i < maxSets; ++i) {
if (cachedHandles[i] != nullptr) {
cachedHandles[i] = nullptr;
graphics->getDestructionManager()->queueResourceForDestruction(std::move(cachedHandles[i]));
}
}
vkDestroyDescriptorPool(graphics->getDevice(), poolHandle, nullptr);