We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c7f14 commit d2814ebCopy full SHA for d2814eb
core/templates/hashfuncs.h
@@ -389,6 +389,13 @@ struct HashMapHasherDefault {
389
h = hash_murmur3_one_real(p_vec.w, h);
390
return hash_fmix32(h);
391
}
392
+ static _FORCE_INLINE_ uint32_t hash(const Color &p_vec) {
393
+ uint32_t h = hash_murmur3_one_float(p_vec.r);
394
+ h = hash_murmur3_one_float(p_vec.g, h);
395
+ h = hash_murmur3_one_float(p_vec.b, h);
396
+ h = hash_murmur3_one_float(p_vec.a, h);
397
+ return hash_fmix32(h);
398
+ }
399
static _FORCE_INLINE_ uint32_t hash(const Rect2i &p_rect) {
400
uint32_t h = hash_murmur3_one_32(uint32_t(p_rect.position.x));
401
h = hash_murmur3_one_32(uint32_t(p_rect.position.y), h);
0 commit comments