mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 05:55:41 +01:00
video_core/shader/ast: Make ShowCurrentState() and SanityCheck() const member functions
These can also trivially be made const member functions, with the addition of a few consts.
This commit is contained in:
parent
222f4b45eb
commit
074b38b7a9
@ -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");
|
||||
}
|
||||
|
@ -332,9 +332,9 @@ public:
|
||||
|
||||
void Decompile();
|
||||
|
||||
void ShowCurrentState(std::string_view state);
|
||||
void ShowCurrentState(std::string_view state) const;
|
||||
|
||||
void SanityCheck();
|
||||
void SanityCheck() const;
|
||||
|
||||
void Clear();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user