1
0
Fork 0
forked from suyu/suyu

surface_view: Add missing operator!= to ViewParams

Provides logical symmetry to the interface.
This commit is contained in:
Lioncash 2020-04-16 00:03:08 -04:00
parent e33196d4e7
commit 5fbe8785d2
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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) {