summaryrefslogtreecommitdiff
path: root/src/video_core/shader/ast.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-05 08:48:15 -0400
committerGravatar Lioncash2019-10-05 09:14:27 -0400
commit6c41d1cd7eadf1030c02d661d7f360b98f4a8943 (patch)
tree2ab00d25523ddae29e33fc8c81ce8bed62de18c4 /src/video_core/shader/ast.cpp
parentvideo_core/ast: Eliminate variable shadowing warnings (diff)
downloadyuzu-6c41d1cd7eadf1030c02d661d7f360b98f4a8943.tar.gz
yuzu-6c41d1cd7eadf1030c02d661d7f360b98f4a8943.tar.xz
yuzu-6c41d1cd7eadf1030c02d661d7f360b98f4a8943.zip
video_core/ast: Make ShowCurrentState() take a string_view instead of std::string
Allows the function to be non-allocating in terms of the output string.
Diffstat (limited to 'src/video_core/shader/ast.cpp')
-rw-r--r--src/video_core/shader/ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index 6eba78025..436d45f4b 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -549,7 +549,7 @@ bool ASTManager::DirectlyRelated(const ASTNode& first, const ASTNode& second) co
549 return min->GetParent() == max->GetParent(); 549 return min->GetParent() == max->GetParent();
550} 550}
551 551
552void ASTManager::ShowCurrentState(std::string state) { 552void ASTManager::ShowCurrentState(std::string_view state) {
553 LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print()); 553 LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print());
554 SanityCheck(); 554 SanityCheck();
555} 555}