Bit of shader refactoring

This commit is contained in:
Dynamitos
2023-11-26 12:47:48 +01:00
parent 52c7fce931
commit 2ad7eae60b
6 changed files with 18 additions and 33 deletions
+1 -4
View File
@@ -468,10 +468,7 @@ CommandPool::CommandPool(PGraphics graphics, PQueue queue)
CommandPool::~CommandPool()
{
for (auto& command : allocatedBuffers)
{
command->waitForCommand();
}
vkDeviceWaitIdle(graphics->getDevice());
allocatedRenderCommands.clear();
allocatedComputeCommands.clear();
allocatedBuffers.clear();