summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/ast.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-18 02:59:46 +0200
committerLioncash <mathew1800@gmail.com>2019-10-18 02:59:48 +0200
commit074b38b7a918a52f9085490f0da44b6e0dc23639 (patch)
treeaa50ef01406e848d63c8ba061a6864775db18f18 /src/video_core/shader/ast.cpp
parentvideo_core/shader/ast: Make ASTManager::Print a const member function (diff)
downloadyuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.tar
yuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.tar.gz
yuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.tar.bz2
yuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.tar.lz
yuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.tar.xz
yuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.tar.zst
yuzu-074b38b7a918a52f9085490f0da44b6e0dc23639.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/ast.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index 784f8f69f..e43aecc18 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -560,13 +560,13 @@ bool ASTManager::DirectlyRelated(const ASTNode& first, const ASTNode& second) co
return min->GetParent() == max->GetParent();
}
-void ASTManager::ShowCurrentState(std::string_view state) {
+void ASTManager::ShowCurrentState(std::string_view state) const {
LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print());
SanityCheck();
}
-void ASTManager::SanityCheck() {
- for (auto& label : labels) {
+void ASTManager::SanityCheck() const {
+ for (const auto& label : labels) {
if (!label->GetParent()) {
LOG_CRITICAL(HW_GPU, "Sanity Check Failed");
}