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