diff options
Diffstat (limited to 'src/video_core/shader/ast.cpp')
| -rw-r--r-- | src/video_core/shader/ast.cpp | 4 |
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: | |||
| 333 | inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult()); | 333 | inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult()); |
| 334 | } | 334 | } |
| 335 | 335 | ||
| 336 | void Visit(ASTNode& node) { | 336 | void Visit(const ASTNode& node) { |
| 337 | std::visit(*this, *node->GetInnerData()); | 337 | std::visit(*this, *node->GetInnerData()); |
| 338 | } | 338 | } |
| 339 | 339 | ||
| @@ -364,7 +364,7 @@ private: | |||
| 364 | static constexpr std::string_view spaces{" "}; | 364 | static constexpr std::string_view spaces{" "}; |
| 365 | }; | 365 | }; |
| 366 | 366 | ||
| 367 | std::string ASTManager::Print() { | 367 | std::string ASTManager::Print() const { |
| 368 | ASTPrinter printer{}; | 368 | ASTPrinter printer{}; |
| 369 | printer.Visit(main_node); | 369 | printer.Visit(main_node); |
| 370 | return printer.GetResult(); | 370 | return printer.GetResult(); |