Hide list of children completely in structured data

* This makes it easier to enforce object ownership, as well as gives us options
  for e.g. generating structure data on demand lazily.
This commit is contained in:
baldurk
2020-10-23 15:55:44 +01:00
parent 117e16041a
commit 394896a3c9
15 changed files with 317 additions and 246 deletions
@@ -268,10 +268,10 @@ void PersistantConfig::applyValues(const QVariantMap &values)
SDObject *debug = RENDERDOC_SetConfigSetting("DXBC.Debug.SearchDirPaths");
debug->DeleteChildren();
debug->data.children.resize(searchPaths.size());
debug->ReserveChildren(searchPaths.size());
for(int i = 0; i < searchPaths.size(); i++)
debug->data.children[i] = makeSDString("$el", searchPaths[i]);
debug->AddAndOwnChild(makeSDString("$el", searchPaths[i]));
}
if(settings.contains(lit("d3d12ShaderDebugging")))