summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-12-22 13:33:25 -0500
committerGitHub <noreply@github.com>2025-12-22 13:33:25 -0500
commit38a89c6365239ebf2637b685c55ba1791842c2d4 (patch)
tree5962753d91599012bd86a1166d29976746de325b /Source/Core/VideoCommon/GraphicsModSystem
parentbc03aa72ac7ad3c2244ad4d43c9d2e4d163165e2 (diff)
parent506e3782891da702725b625c103edc61d4279d71 (diff)
Merge pull request #14150 from iwubcode/clear_async_compiler_work_items
VideoCommon: add method to async shader compiler to clear pending/completed work, use on shutdown
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp
index a3c98ee9d7..0c4cf43227 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp
@@ -24,10 +24,16 @@ CustomShaderCache::CustomShaderCache()
CustomShaderCache::~CustomShaderCache()
{
if (m_async_shader_compiler)
+ {
m_async_shader_compiler->StopWorkerThreads();
+ m_async_shader_compiler->ClearAllWork();
+ }
if (m_async_uber_shader_compiler)
+ {
m_async_uber_shader_compiler->StopWorkerThreads();
+ m_async_uber_shader_compiler->ClearAllWork();
+ }
}
void CustomShaderCache::RetrieveAsyncShaders()