diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-19 02:07:12 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:40 +0200 |
commit | 258f35515d61d01049d2e433146cab808837bb7d (patch) | |
tree | d7259d17dbbba65229a9473f1efef18149769a3b /src/video_core/shader_environment.h | |
parent | cmake: Remove shader cache version (diff) | |
download | yuzu-258f35515d61d01049d2e433146cab808837bb7d.tar yuzu-258f35515d61d01049d2e433146cab808837bb7d.tar.gz yuzu-258f35515d61d01049d2e433146cab808837bb7d.tar.bz2 yuzu-258f35515d61d01049d2e433146cab808837bb7d.tar.lz yuzu-258f35515d61d01049d2e433146cab808837bb7d.tar.xz yuzu-258f35515d61d01049d2e433146cab808837bb7d.tar.zst yuzu-258f35515d61d01049d2e433146cab808837bb7d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader_environment.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h index d26dbfaab..2079979db 100644 --- a/src/video_core/shader_environment.h +++ b/src/video_core/shader_environment.h @@ -164,18 +164,19 @@ private: }; void SerializePipeline(std::span<const char> key, std::span<const GenericEnvironment* const> envs, - const std::filesystem::path& filename); + const std::filesystem::path& filename, u32 cache_version); template <typename Key, typename Envs> -void SerializePipeline(const Key& key, const Envs& envs, const std::filesystem::path& filename) { +void SerializePipeline(const Key& key, const Envs& envs, const std::filesystem::path& filename, + u32 cache_version) { static_assert(std::is_trivially_copyable_v<Key>); static_assert(std::has_unique_object_representations_v<Key>); SerializePipeline(std::span(reinterpret_cast<const char*>(&key), sizeof(key)), - std::span(envs.data(), envs.size()), filename); + std::span(envs.data(), envs.size()), filename, cache_version); } void LoadPipelines( - std::stop_token stop_loading, const std::filesystem::path& filename, + std::stop_token stop_loading, const std::filesystem::path& filename, u32 expected_cache_version, Common::UniqueFunction<void, std::ifstream&, FileEnvironment> load_compute, Common::UniqueFunction<void, std::ifstream&, std::vector<FileEnvironment>> load_graphics); |