| 13 | #include "pxr/exec/vdf/node.h" |
| 14 | |
| 15 | PXR_NAMESPACE_OPEN_SCOPE |
| 16 | |
| 17 | TfSmallVector<const Exec_InputKey *, 1> |
| 18 | Exec_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 | |
| 40 | PXR_NAMESPACE_CLOSE_SCOPE |