minecraftvulkan/engine/xe_utils.hpp

11 lines
250 B
C++
Raw Normal View History

2022-09-19 01:20:51 +00:00
#pragma once
namespace xe {
template <typename T, typename... Rest>
void hashCombine(std::size_t& seed, const T& v, const Rest&... rest) {
seed ^= std::hash<T>{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
(hashCombine(seed, rest), ...);
};
}