mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 11:07:46 +00:00
surface_view: Add missing operator!= to ViewParams
Provides logical symmetry to the interface.
This commit is contained in:
parent
d06795c08a
commit
adae1cbaeb
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
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
|
} // namespace VideoCommon
|
||||||
|
|
|
@ -21,6 +21,7 @@ struct ViewParams {
|
||||||
std::size_t Hash() const;
|
std::size_t Hash() const;
|
||||||
|
|
||||||
bool operator==(const ViewParams& rhs) const;
|
bool operator==(const ViewParams& rhs) const;
|
||||||
|
bool operator!=(const ViewParams& rhs) const;
|
||||||
|
|
||||||
bool IsLayered() const {
|
bool IsLayered() const {
|
||||||
switch (target) {
|
switch (target) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue