diff options
| author | 2020-04-16 01:39:51 -0300 | |
|---|---|---|
| committer | 2020-04-16 01:39:51 -0300 | |
| commit | d196ce0f716e8644eb1255946bdba757f5668053 (patch) | |
| tree | da1fca50af6699f191ee03621411f626e81536ce | |
| parent | Merge pull request #3680 from lioncash/static (diff) | |
| parent | surface_view: Add missing operator!= to ViewParams (diff) | |
| download | yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.gz yuzu-d196ce0f716e8644eb1255946bdba757f5668053.tar.xz yuzu-d196ce0f716e8644eb1255946bdba757f5668053.zip | |
Merge pull request #3688 from lioncash/nequal
surface_view: Add missing operator!= to ViewParams
| -rw-r--r-- | src/video_core/texture_cache/surface_view.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/texture_cache/surface_view.h | 1 |
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 { | |||
| 20 | std::tie(rhs.base_layer, rhs.num_layers, rhs.base_level, rhs.num_levels, rhs.target); | 20 | std::tie(rhs.base_layer, rhs.num_layers, rhs.base_level, rhs.num_levels, rhs.target); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | bool ViewParams::operator!=(const ViewParams& rhs) const { | ||
| 24 | return !operator==(rhs); | ||
| 25 | } | ||
| 26 | |||
| 23 | } // namespace VideoCommon | 27 | } // 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 { | |||
| 21 | std::size_t Hash() const; | 21 | std::size_t Hash() const; |
| 22 | 22 | ||
| 23 | bool operator==(const ViewParams& rhs) const; | 23 | bool operator==(const ViewParams& rhs) const; |
| 24 | bool operator!=(const ViewParams& rhs) const; | ||
| 24 | 25 | ||
| 25 | bool IsLayered() const { | 26 | bool IsLayered() const { |
| 26 | switch (target) { | 27 | switch (target) { |