Browse Source
Merge pull request #3688 from lioncash/nequal
surface_view: Add missing operator!= to ViewParams
pull/15/merge
Rodrigo Locatti
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
0 deletions
-
src/video_core/texture_cache/surface_view.cpp
-
src/video_core/texture_cache/surface_view.h
|
|
|
@ -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
|
|
|
|
@ -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) { |
|
|
|
|