| 88 | |
| 89 | template <typename ParamType> |
| 90 | bool GetTaskParameter(pxr::HdSceneDelegate* Delegate, const pxr::TfToken& Name, ParamType& Param) const |
| 91 | { |
| 92 | pxr::VtValue ParamValue = Delegate->Get(GetId(), Name); |
| 93 | if (ParamValue.IsHolding<ParamType>()) |
| 94 | { |
| 95 | Param = ParamValue.UncheckedGet<ParamType>(); |
| 96 | return true; |
| 97 | } |
| 98 | else |
| 99 | { |
| 100 | UNEXPECTED("Parameter type ", ParamValue.GetTypeName(), " is not recognized by task ", GetId()); |
| 101 | return false; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | template <typename ParamsType> |
| 106 | bool GetTaskParams(pxr::HdSceneDelegate* Delegate, ParamsType& Params) const |