VERY experimental Nintendo Switch 2 emulator
C++
video_core/shader/ast: Make Indent() private
Lioncash3025e2110caa
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cppindex ea121e9d57..f409706cc0 100644--- a/src/video_core/shader/ast.cpp+++ b/src/video_core/shader/ast.cpp@@ -326,15 +326,6 @@ public:inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult());}- std::string& Indent() {- if (memo_scope == scope) {- return tabs_memo;- }- tabs_memo = tabs.substr(0, scope * 2);- memo_scope = scope;- return tabs_memo;- }-void Visit(ASTNode& node) {std::visit(*this, *node->GetInnerData());}@@ -344,6 +335,15 @@ public:}private:+ std::string& Indent() {+ if (memo_scope == scope) {+ return tabs_memo;+ }+ tabs_memo = tabs.substr(0, scope * 2);+ memo_scope = scope;+ return tabs_memo;+ }+std::string inner{};u32 scope{};