summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-12-07 22:09:29 +0100
committerLioncash <mathew1800@gmail.com>2020-12-07 22:15:28 +0100
commit45c5b084fde190336d07c01368699a6129214bdf (patch)
treea1222e922b05249f925c7e77c8a4ab850dea8c85 /src/video_core
parentMerge pull request #5149 from comex/xx-map-interval (diff)
downloadyuzu-45c5b084fde190336d07c01368699a6129214bdf.tar
yuzu-45c5b084fde190336d07c01368699a6129214bdf.tar.gz
yuzu-45c5b084fde190336d07c01368699a6129214bdf.tar.bz2
yuzu-45c5b084fde190336d07c01368699a6129214bdf.tar.lz
yuzu-45c5b084fde190336d07c01368699a6129214bdf.tar.xz
yuzu-45c5b084fde190336d07c01368699a6129214bdf.tar.zst
yuzu-45c5b084fde190336d07c01368699a6129214bdf.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/ast.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index cc2dbe36c..db11144c7 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -212,16 +212,15 @@ public:
}
void operator()(const ExprPredicate& expr) {
- inner += "P" + std::to_string(expr.predicate);
+ inner += fmt::format("P{}", expr.predicate);
}
void operator()(const ExprCondCode& expr) {
- u32 cc = static_cast<u32>(expr.cc);
- inner += "CC" + std::to_string(cc);
+ inner += fmt::format("CC{}", expr.cc);
}
void operator()(const ExprVar& expr) {
- inner += "V" + std::to_string(expr.var_index);
+ inner += fmt::format("V{}", expr.var_index);
}
void operator()(const ExprBoolean& expr) {
@@ -229,7 +228,7 @@ public:
}
void operator()(const ExprGprEqual& expr) {
- inner += "( gpr_" + std::to_string(expr.gpr) + " == " + std::to_string(expr.value) + ')';
+ inner += fmt::format("(gpr_{} == {})", expr.gpr, expr.value);
}
const std::string& GetResult() const {