summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/ast.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-18 02:56:36 +0200
committerLioncash <mathew1800@gmail.com>2019-10-18 02:56:39 +0200
commit222f4b45ebd545375b7befb84cfff81ae024e691 (patch)
tree09e9bc9b7f9a0ab68414759f81bd827098368556 /src/video_core/shader/ast.cpp
parentvideo_core/shader/ast: Make ExprPrinter members private (diff)
downloadyuzu-222f4b45ebd545375b7befb84cfff81ae024e691.tar
yuzu-222f4b45ebd545375b7befb84cfff81ae024e691.tar.gz
yuzu-222f4b45ebd545375b7befb84cfff81ae024e691.tar.bz2
yuzu-222f4b45ebd545375b7befb84cfff81ae024e691.tar.lz
yuzu-222f4b45ebd545375b7befb84cfff81ae024e691.tar.xz
yuzu-222f4b45ebd545375b7befb84cfff81ae024e691.tar.zst
yuzu-222f4b45ebd545375b7befb84cfff81ae024e691.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/ast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index c7d471d50..784f8f69f 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -333,7 +333,7 @@ public:
inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult());
}
- void Visit(ASTNode& node) {
+ void Visit(const ASTNode& node) {
std::visit(*this, *node->GetInnerData());
}
@@ -364,7 +364,7 @@ private:
static constexpr std::string_view spaces{" "};
};
-std::string ASTManager::Print() {
+std::string ASTManager::Print() const {
ASTPrinter printer{};
printer.Visit(main_node);
return printer.GetResult();