MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ operator()()

size_t MayaFlux::Portal::Graphics::ImageKeyHash::operator() ( const ImageKey &  key) const
noexcept

Definition at line 15 of file TextureLoom.cpp.

16{
17 uint64_t hash = 14695981039346656037ULL;
18 const auto mix = [&hash](uint64_t value) {
19 hash = (hash ^ value) * 1099511628211ULL;
20 };
21
22 mix(key.width);
23 mix(key.height);
24 mix(key.layers);
25 mix(key.mip_levels);
26 mix(static_cast<uint64_t>(key.format));
27 mix(static_cast<uint64_t>(key.kind));
28
29 return static_cast<size_t>(hash);
30}
glm::vec3 value

References value.