Bit of shader refactoring

This commit is contained in:
Dynamitos committed 2023-11-26 12:47:48 +01:00
1 parent 52c7fce931
commit 2ad7eae60b
6 files changed
+18 -33

No files matched your search

+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();