MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / GetInputKeys

Method GetInputKeys

pxr/exec/exec/nodeRecompilationInfo.cpp:15–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "pxr/exec/vdf/node.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
17TfSmallVector<const Exec_InputKey *, 1>
18Exec_NodeRecompilationInfo::GetInputKeys(const VdfInput &input) const
19{
20 TfSmallVector<const Exec_InputKey *, 1> matchingInputKeys;
21 const TfToken &inputName = input.GetName();
22 const TfType inputType = input.GetSpec().GetType();
23
24 for (const Exec_InputKey &inputKey : _inputKeys->Get()) {
25 if (inputKey.inputName == inputName &&
26 inputKey.resultType == inputType) {
27 matchingInputKeys.push_back(&inputKey);
28 }
29 }
30
31 if (!TF_VERIFY(!matchingInputKeys.empty(),
32 "Recompilation could not obtain input keys for '%s' on node '%s'",
33 input.GetName().GetText(),
34 input.GetNode().GetDebugName().c_str())) {
35 }
36
37 return matchingInputKeys;
38}
39
40PXR_NAMESPACE_CLOSE_SCOPE

Calls 9

push_backMethod · 0.80
GetNameMethod · 0.45
GetTypeMethod · 0.45
GetMethod · 0.45
emptyMethod · 0.45
GetTextMethod · 0.45
c_strMethod · 0.45
GetDebugNameMethod · 0.45
GetNodeMethod · 0.45