mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 09:50:06 +00:00
GetShaderCacheVersionHash: add comment explaining where the hash comes from
This commit is contained in:
parent
a8d82a2a04
commit
c6fc00bc77
@ -33,6 +33,8 @@ enum class PrecompiledEntryKind : u32 {
|
|||||||
|
|
||||||
constexpr u32 NativeVersion = 1;
|
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 GetShaderCacheVersionHash() {
|
||||||
ShaderCacheVersionHash hash{};
|
ShaderCacheVersionHash hash{};
|
||||||
const std::size_t length = std::min(std::strlen(Common::g_shader_cache_version), hash.size());
|
const std::size_t length = std::min(std::strlen(Common::g_shader_cache_version), hash.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user