summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/expr.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-05 14:37:39 +0200
committerLioncash <mathew1800@gmail.com>2019-10-05 15:14:26 +0200
commit50ad74558566af897db6d7a999101e40ee544108 (patch)
tree80b6a06b14ca51550a754ee042a465ac204169d7 /src/video_core/shader/expr.cpp
parentvideo_core/{ast, expr}: Use std::move where applicable (diff)
downloadyuzu-50ad74558566af897db6d7a999101e40ee544108.tar
yuzu-50ad74558566af897db6d7a999101e40ee544108.tar.gz
yuzu-50ad74558566af897db6d7a999101e40ee544108.tar.bz2
yuzu-50ad74558566af897db6d7a999101e40ee544108.tar.lz
yuzu-50ad74558566af897db6d7a999101e40ee544108.tar.xz
yuzu-50ad74558566af897db6d7a999101e40ee544108.tar.zst
yuzu-50ad74558566af897db6d7a999101e40ee544108.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/expr.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/video_core/shader/expr.cpp b/src/video_core/shader/expr.cpp
index 39df7a927..2647865d4 100644
--- a/src/video_core/shader/expr.cpp
+++ b/src/video_core/shader/expr.cpp
@@ -22,12 +22,24 @@ bool ExprAnd::operator==(const ExprAnd& b) const {
return (*operand1 == *b.operand1) && (*operand2 == *b.operand2);
}
+bool ExprAnd::operator!=(const ExprAnd& b) const {
+ return !operator==(b);
+}
+
bool ExprOr::operator==(const ExprOr& b) const {
return (*operand1 == *b.operand1) && (*operand2 == *b.operand2);
}
+bool ExprOr::operator!=(const ExprOr& b) const {
+ return !operator==(b);
+}
+
bool ExprNot::operator==(const ExprNot& b) const {
- return (*operand1 == *b.operand1);
+ return *operand1 == *b.operand1;
+}
+
+bool ExprNot::operator!=(const ExprNot& b) const {
+ return !operator==(b);
}
Expr MakeExprNot(Expr first) {