Vulkan: Properly shut down compilation threads

This commit is contained in:
Exzap 2023-12-06 02:16:17 +01:00
parent bffeb818d1
commit e7fa8ec0c6
3 changed files with 28 additions and 3 deletions

View file

@ -591,6 +591,9 @@ VulkanRenderer::VulkanRenderer()
{
//cemuLog_log(LogType::Force, "Disable surface copies via buffer (Requires 2GB. Has only {}MB available)", availableSurfaceCopyBufferMem / 1024ull / 1024ull);
}
// start compilation threads
RendererShaderVk::Init();
}
VulkanRenderer::~VulkanRenderer()
@ -598,6 +601,8 @@ VulkanRenderer::~VulkanRenderer()
SubmitCommandBuffer();
WaitDeviceIdle();
WaitCommandBufferFinished(GetCurrentCommandBufferId());
// shut down compilation threads
RendererShaderVk::Shutdown();
// shut down pipeline save thread
m_destructionRequested = true;
m_pipeline_cache_semaphore.notify();