mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Allow the pipeline flow chart control to change stages dynamically
This commit is contained in:
@@ -41,7 +41,9 @@ void PipelineFlowChart::setStages(const QStringList &abbrevs, const QStringList
|
||||
m_StageNames = names;
|
||||
m_StageAbbrevs = abbrevs;
|
||||
m_StageFlows.reserve(m_StageNames.count());
|
||||
m_StageFlows.clear();
|
||||
m_StagesEnabled.reserve(m_StageNames.count());
|
||||
m_StagesEnabled.clear();
|
||||
for(int i = 0; i < m_StageNames.count(); i++)
|
||||
{
|
||||
m_StageFlows.push_back(true);
|
||||
@@ -49,6 +51,7 @@ void PipelineFlowChart::setStages(const QStringList &abbrevs, const QStringList
|
||||
}
|
||||
|
||||
update();
|
||||
setSelectedStage(selectedStage());
|
||||
}
|
||||
|
||||
void PipelineFlowChart::setStageName(int index, const QString &abbrev, const QString &name)
|
||||
|
||||
Reference in New Issue
Block a user