summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-04-16 06:39:51 +0200
committerGitHub <noreply@github.com>2020-04-16 06:39:51 +0200
commitd196ce0f716e8644eb1255946bdba757f5668053 (patch)
treeda1fca50af6699f191ee03621411f626e81536ce /src
parentMerge pull request #3680 from lioncash/static (diff)
parentsurface_view: Add missing operator!= to ViewParams (diff)
downloadyuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar
yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.gz
yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.bz2
yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.lz
yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.xz
yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.zst
yuzu-d196ce0f716e8644eb1255946bdba757f5668053.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/surface_view.cpp4
-rw-r--r--src/video_core/texture_cache/surface_view.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/surface_view.cpp b/src/video_core/texture_cache/surface_view.cpp
index 57a1f5803..6b5f5984b 100644
--- a/src/video_core/texture_cache/surface_view.cpp
+++ b/src/video_core/texture_cache/surface_view.cpp
@@ -20,4 +20,8 @@ bool ViewParams::operator==(const ViewParams& rhs) const {
std::tie(rhs.base_layer, rhs.num_layers, rhs.base_level, rhs.num_levels, rhs.target);
}
+bool ViewParams::operator!=(const ViewParams& rhs) const {
+ return !operator==(rhs);
+}
+
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/surface_view.h b/src/video_core/texture_cache/surface_view.h
index b17fd11a9..90a8bb0ae 100644
--- a/src/video_core/texture_cache/surface_view.h
+++ b/src/video_core/texture_cache/surface_view.h
@@ -21,6 +21,7 @@ struct ViewParams {
std::size_t Hash() const;
bool operator==(const ViewParams& rhs) const;
+ bool operator!=(const ViewParams& rhs) const;
bool IsLayered() const {
switch (target) {