Browse Source
vk_sampler_cache: Use operator== instead of memcmp
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
pull/15/merge
Mat M
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/video_core/renderer_vulkan/vk_sampler_cache.cpp
|
|
|
@ -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} {} |
|
|
|
|