mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 03:21:38 +12:00
[PICA] Switch to xxh3 by default
This commit is contained in:
parent
f82b27ddba
commit
f0f7327b90
4 changed files with 60 additions and 23 deletions
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
// Defines to pick which hash algorithm to use for the PICA (For hashing shaders, etc)
|
||||
// Please only define one of them
|
||||
//#define PANDA3DS_PICA_CITYHASH
|
||||
#define PANDA3DS_PICA_XXHASH3
|
||||
|
||||
namespace PICAHash {
|
||||
#if defined(PANDA3DS_PICA_CITYHASH) || defined(PANDA3DS_PICA_XXHASH3)
|
||||
using HashType = std::uint64_t;
|
||||
#endif
|
||||
|
||||
HashType computeHash(const char* buf, std::size_t len);
|
||||
} // namespace PICAHash
|
Loading…
Add table
Add a link
Reference in a new issue