From c6fc00bc77aa46f30bb576f0a0e18bb9cc45e4d9 Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Sat, 3 Sep 2022 15:09:09 +0200 Subject: [PATCH] GetShaderCacheVersionHash: add comment explaining where the hash comes from --- src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp index 1a3ea1d738..f2b0757d3b 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -33,6 +33,8 @@ enum class PrecompiledEntryKind : u32 { constexpr u32 NativeVersion = 1; +// The hash is based on relevant files. The list of files can be found at src/common/CMakeLists.txt +// and CMakeModules/GenerateSCMRev.cmake ShaderCacheVersionHash GetShaderCacheVersionHash() { ShaderCacheVersionHash hash{}; const std::size_t length = std::min(std::strlen(Common::g_shader_cache_version), hash.size());