Fix release of Vulkan resources

This commit is contained in:
2023-09-23 17:52:11 +02:00
parent 1e693a184e
commit 5b5f18b9a8
4 changed files with 21 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ namespace openVulkanoCpp
vk::CommandPool* cmdPools = nullptr;
vk::CommandBuffer* cmdBuffers = nullptr;
vk::Semaphore* semaphores = nullptr;
std::vector<MemoryAllocation*> allocations;
std::vector<std::unique_ptr<MemoryAllocation>> allocations;
std::vector<std::unique_ptr<VulkanShader>> shaders;
MemoryAllocation* lastAllocation = nullptr;
std::mutex mutex;