diff options
| author | 2019-09-28 15:16:19 -0400 | |
|---|---|---|
| committer | 2019-10-04 18:52:57 -0400 | |
| commit | 3c09d9abe6d268ada063fd67c08d09fc0fcad613 (patch) | |
| tree | 27f1442ec1ee8390850dd5099ed3642f1d3f59db /src/video_core/shader/expr.h | |
| parent | vk_shader_decompiler: Correct Branches inside conditionals. (diff) | |
| download | yuzu-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.h | 14 |
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 | ||
| 29 | class ExprAnd final { | 29 | class ExprAnd final { |
| 30 | public: | 30 | public: |
| 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 | ||
| 39 | class ExprOr final { | 39 | class ExprOr final { |
| 40 | public: | 40 | public: |
| 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 | ||
| 49 | class ExprNot final { | 49 | class ExprNot final { |
| 50 | public: | 50 | public: |
| 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 | ||
| 58 | class ExprVar final { | 58 | class ExprVar final { |
| 59 | public: | 59 | public: |
| 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 | ||
| 69 | class ExprPredicate final { | 69 | class ExprPredicate final { |
| 70 | public: | 70 | public: |
| 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 | ||
| 80 | class ExprCondCode final { | 80 | class ExprCondCode final { |
| 81 | public: | 81 | public: |
| 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 | ||
| 91 | class ExprBoolean final { | 91 | class ExprBoolean final { |
| 92 | public: | 92 | public: |
| 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; |