mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-13 06:32:34 +00: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
|
@ -5,6 +5,7 @@
|
|||
#include "helpers.hpp"
|
||||
#include "opengl.hpp"
|
||||
#include "PICA/float_types.hpp"
|
||||
#include "PICA/pica_hash.hpp"
|
||||
|
||||
enum class ShaderType {
|
||||
Vertex, Geometry
|
||||
|
@ -105,7 +106,7 @@ protected:
|
|||
// We use a hashmap for matching 3DS shaders to their equivalent compiled code in our shader cache in the shader JIT
|
||||
// We choose our hash type to be a 64-bit integer by default, as the collision chance is very tiny and generating it is decently optimal
|
||||
// Ideally we want to be able to support multiple different types of hash depending on compilation settings, but let's get this working first
|
||||
using Hash = u64;
|
||||
using Hash = PICAHash::HashType;
|
||||
|
||||
Hash lastCodeHash = 0; // Last hash computed for the shader code (Used for the JIT caching mechanism)
|
||||
Hash lastOpdescHash = 0; // Last hash computed for the operand descriptors (Also used for the JIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue