summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2019-03-13 01:05:36 +0100
committerGitHub <noreply@github.com>2019-03-13 01:05:36 +0100
commita3734d7e31095133154ae048acbcc3bd6d9f93e9 (patch)
tree03431cfbd8736dafc27232a7cd299477eb272601 /src
parentvk_sampler_cache: Implement a sampler cache (diff)
downloadyuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.tar
yuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.tar.gz
yuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.tar.bz2
yuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.tar.lz
yuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.tar.xz
yuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.tar.zst
yuzu-a3734d7e31095133154ae048acbcc3bd6d9f93e9.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_sampler_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_sampler_cache.cpp b/src/video_core/renderer_vulkan/vk_sampler_cache.cpp
index f099d78ab..ed3178f09 100644
--- a/src/video_core/renderer_vulkan/vk_sampler_cache.cpp
+++ b/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} {}