MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / VuidHash

Function VuidHash

layers/utils/hash_util.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace hash_util {
34
35uint32_t VuidHash(std::string_view vuid) {
36 // While the XXH32 is known to be slower, unfortunately people are likely relying on the
37 // exact hashes being returned, so we need to keep this stable.
38 constexpr uint32_t seed = 8;
39 return XXH32(vuid.data(), vuid.size(), seed);
40}
41
42uint32_t Hash32(const void* info, const size_t info_size) {
43 // Documentation shows XXH32 is a legacy function and XXH3_64bits is much faster

Callers 3

LogMessageMethod · 0.85
TEST_FFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected