Route scene viewport overlays through render passes

This commit is contained in:
2026-03-30 03:52:59 +08:00
parent 2a31628db1
commit b92f9bfa70
2 changed files with 305 additions and 112 deletions

View File

@@ -8,24 +8,68 @@ namespace UI {
class ConsoleFilterState {
public:
bool& ShowInfo() {
return m_showInfo;
bool& ShowLog() {
return m_showLog;
}
bool ShowLog() const {
return m_showLog;
}
bool& ShowWarning() {
return m_showWarning;
}
bool ShowWarning() const {
return m_showWarning;
}
bool& ShowError() {
return m_showError;
}
bool ShowError() const {
return m_showError;
}
bool& Collapse() {
return m_collapse;
}
bool Collapse() const {
return m_collapse;
}
bool& ClearOnPlay() {
return m_clearOnPlay;
}
bool ClearOnPlay() const {
return m_clearOnPlay;
}
bool& ErrorPause() {
return m_errorPause;
}
bool ErrorPause() const {
return m_errorPause;
}
bool& ShowInfo() {
return ShowLog();
}
bool ShowInfo() const {
return ShowLog();
}
bool Allows(::XCEngine::Debug::LogLevel level) const {
switch (level) {
case ::XCEngine::Debug::LogLevel::Verbose:
case ::XCEngine::Debug::LogLevel::Debug:
case ::XCEngine::Debug::LogLevel::Info:
return m_showInfo;
return m_showLog;
case ::XCEngine::Debug::LogLevel::Warning:
return m_showWarning;
case ::XCEngine::Debug::LogLevel::Error:
@@ -37,9 +81,12 @@ public:
}
private:
bool m_showInfo = true;
bool m_showLog = true;
bool m_showWarning = true;
bool m_showError = true;
bool m_collapse = false;
bool m_clearOnPlay = false;
bool m_errorPause = false;
};
} // namespace UI