mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 14:15:46 -04:00
ShaderCache: Add a data version field
We can increment this to prevent people's shader caches from growing too large with shader changes.
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
#include "common/vulkan/stream_buffer.h"
|
||||
#include "common/vulkan/swap_chain.h"
|
||||
#include "common/vulkan/util.h"
|
||||
#include "core/shader_cache_version.h"
|
||||
#include "postprocessing_shadergen.h"
|
||||
#include <array>
|
||||
#ifdef WITH_IMGUI
|
||||
@ -331,7 +332,7 @@ bool VulkanHostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_vie
|
||||
bool VulkanHostDisplay::InitializeRenderDevice(std::string_view shader_cache_directory, bool debug_device,
|
||||
bool threaded_presentation)
|
||||
{
|
||||
Vulkan::ShaderCache::Create(shader_cache_directory, debug_device);
|
||||
Vulkan::ShaderCache::Create(shader_cache_directory, SHADER_CACHE_VERSION, debug_device);
|
||||
|
||||
if (!CreateResources())
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user