summaryrefslogtreecommitdiff
path: root/src/video_core/shader/expr.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-09-28 15:16:19 -0400
committerGravatar FernandoS272019-10-04 18:52:57 -0400
commit3c09d9abe6d268ada063fd67c08d09fc0fcad613 (patch)
tree27f1442ec1ee8390850dd5099ed3642f1d3f59db /src/video_core/shader/expr.h
parentvk_shader_decompiler: Correct Branches inside conditionals. (diff)
downloadyuzu-3c09d9abe6d268ada063fd67c08d09fc0fcad613.tar.gz
yuzu-3c09d9abe6d268ada063fd67c08d09fc0fcad613.tar.xz
yuzu-3c09d9abe6d268ada063fd67c08d09fc0fcad613.zip
Shader_Ir: Address Feedback and clang format.
Diffstat (limited to 'src/video_core/shader/expr.h')
-rw-r--r--src/video_core/shader/expr.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/shader/expr.h b/src/video_core/shader/expr.h
index 60598977a..4c399cef9 100644
--- a/src/video_core/shader/expr.h
+++ b/src/video_core/shader/expr.h
@@ -28,7 +28,7 @@ using Expr = std::shared_ptr<ExprData>;
28 28
29class ExprAnd final { 29class ExprAnd final {
30public: 30public:
31 ExprAnd(Expr a, Expr b) : operand1{a}, operand2{b} {} 31 explicit ExprAnd(Expr a, Expr b) : operand1{a}, operand2{b} {}
32 32
33 bool operator==(const ExprAnd& b) const; 33 bool operator==(const ExprAnd& b) const;
34 34
@@ -38,7 +38,7 @@ public:
38 38
39class ExprOr final { 39class ExprOr final {
40public: 40public:
41 ExprOr(Expr a, Expr b) : operand1{a}, operand2{b} {} 41 explicit ExprOr(Expr a, Expr b) : operand1{a}, operand2{b} {}
42 42
43 bool operator==(const ExprOr& b) const; 43 bool operator==(const ExprOr& b) const;
44 44
@@ -48,7 +48,7 @@ public:
48 48
49class ExprNot final { 49class ExprNot final {
50public: 50public:
51 ExprNot(Expr a) : operand1{a} {} 51 explicit ExprNot(Expr a) : operand1{a} {}
52 52
53 bool operator==(const ExprNot& b) const; 53 bool operator==(const ExprNot& b) const;
54 54
@@ -57,7 +57,7 @@ public:
57 57
58class ExprVar final { 58class ExprVar final {
59public: 59public:
60 ExprVar(u32 index) : var_index{index} {} 60 explicit ExprVar(u32 index) : var_index{index} {}
61 61
62 bool operator==(const ExprVar& b) const { 62 bool operator==(const ExprVar& b) const {
63 return var_index == b.var_index; 63 return var_index == b.var_index;
@@ -68,7 +68,7 @@ public:
68 68
69class ExprPredicate final { 69class ExprPredicate final {
70public: 70public:
71 ExprPredicate(u32 predicate) : predicate{predicate} {} 71 explicit ExprPredicate(u32 predicate) : predicate{predicate} {}
72 72
73 bool operator==(const ExprPredicate& b) const { 73 bool operator==(const ExprPredicate& b) const {
74 return predicate == b.predicate; 74 return predicate == b.predicate;
@@ -79,7 +79,7 @@ public:
79 79
80class ExprCondCode final { 80class ExprCondCode final {
81public: 81public:
82 ExprCondCode(ConditionCode cc) : cc{cc} {} 82 explicit ExprCondCode(ConditionCode cc) : cc{cc} {}
83 83
84 bool operator==(const ExprCondCode& b) const { 84 bool operator==(const ExprCondCode& b) const {
85 return cc == b.cc; 85 return cc == b.cc;
@@ -90,7 +90,7 @@ public:
90 90
91class ExprBoolean final { 91class ExprBoolean final {
92public: 92public:
93 ExprBoolean(bool val) : value{val} {} 93 explicit ExprBoolean(bool val) : value{val} {}
94 94
95 bool operator==(const ExprBoolean& b) const { 95 bool operator==(const ExprBoolean& b) const {
96 return value == b.value; 96 return value == b.value;