Handle deinitialisation
This commit is contained in:
@@ -239,7 +239,6 @@ namespace openVulkanoCpp::AR
|
||||
ArRecorder::AsyncProcessor::~AsyncProcessor()
|
||||
{
|
||||
requestExit = true;
|
||||
queueMutex.lock();
|
||||
newDataAvailable.notify_one();
|
||||
if (processingThread.joinable()) processingThread.join();
|
||||
}
|
||||
|
||||
@@ -79,4 +79,4 @@ namespace openVulkanoCpp::Vulkan
|
||||
dynamicDispatch.init(instance, &vkGetInstanceProcAddr, device->device, &vkGetDeviceProcAddr);
|
||||
Logger::RENDER->info("Found device: {0}", device->GetDeviceName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,6 +104,11 @@ namespace openVulkanoCpp::Vulkan
|
||||
vk::MemoryPropertyFlags properties;
|
||||
void* mapped = nullptr;
|
||||
|
||||
~ManagedBuffer()
|
||||
{
|
||||
allocation->device.destroy(buffer);
|
||||
}
|
||||
|
||||
[[nodiscard]] bool IsLast() const
|
||||
{
|
||||
return (offset + size == allocation->used);
|
||||
|
||||
Reference in New Issue
Block a user