summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/ShaderCache.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2018-02-07 23:35:54 -0800
committerGitHub <noreply@github.com>2018-02-07 23:35:54 -0800
commit096131c9085ff6cb358d03251f666536910d7806 (patch)
tree0e786cfd19885e26aba93636b99a0596d3e51d74 /Source/Core/VideoBackends/Vulkan/ShaderCache.cpp
parent4636230f5a8f38b6a70d366615ab43cda11d736a (diff)
parent505d30be3d922f2fba7abe6fd9880f3c8e66767a (diff)
Merge pull request #6334 from stenzek/startup
Video Backend Initialization/Core Boot Improvements
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ShaderCache.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/ShaderCache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ShaderCache.cpp b/Source/Core/VideoBackends/Vulkan/ShaderCache.cpp
index 2c69267dfc..9f77958b0f 100644
--- a/Source/Core/VideoBackends/Vulkan/ShaderCache.cpp
+++ b/Source/Core/VideoBackends/Vulkan/ShaderCache.cpp
@@ -76,6 +76,9 @@ void ShaderCache::Shutdown()
m_async_shader_compiler->StopWorkerThreads();
m_async_shader_compiler->RetrieveWorkItems();
}
+
+ if (g_ActiveConfig.bShaderCache && m_pipeline_cache != VK_NULL_HANDLE)
+ SavePipelineCache();
}
static bool IsStripPrimitiveTopology(VkPrimitiveTopology topology)