mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 23:02:47 +01:00
vk_sampler_cache: Use operator== instead of memcmp
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
This commit is contained in:
parent
aa59d77c3b
commit
a3734d7e31
1 changed files with 1 additions and 1 deletions
|
@ -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} {}
|
||||
|
|
Loading…
Reference in a new issue