MCPcopy Create free account
hub / github.com/baldurk/renderdoc / DuplicateAndAddChild

Method DuplicateAndAddChild

renderdoc/api/replay/structured_data.h:688–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686:param SDObject child: The new child to add
687)");
688 inline void DuplicateAndAddChild(const SDObject *child)
689 {
690 // if we're adding to a lazy-generated array we can't have a mixture between lazy generation and
691 // fully owned children. This shouldn't happen, but just in case we'll evaluate the lazy array
692 // here.
693 PopulateAllChildren();
694 AddAndOwnChild(child->Duplicate());
695 }
696 DOCUMENT(R"(Find a child object by a given name. If no matching child is found, ``None`` is
697returned.
698

Callers 2

MergeConfigValuesFunction · 0.80
editorEventMethod · 0.80

Calls 3

PopulateAllChildrenFunction · 0.85
AddAndOwnChildFunction · 0.85
DuplicateMethod · 0.45

Tested by

no test coverage detected