Skip to content
Snippets Groups Projects
Unverified Commit a3734d7e authored by Mat M's avatar Mat M Committed by GitHub
Browse files

vk_sampler_cache: Use operator== instead of memcmp


Co-Authored-By: default avatarReinUsesLisp <reinuseslisp@airmail.cc>
parent aa59d77c
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ std::size_t SamplerCacheKey::Hash() const {
}
bool SamplerCacheKey::operator==(const SamplerCacheKey& rhs) const {
return std::memcmp(raw.data(), rhs.raw.data(), sizeof(raw)) == 0;
return raw == rhs.raw;
}
VKSamplerCache::VKSamplerCache(const VKDevice& device) : device{device} {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment