MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / GetTaskParameter

Method GetTaskParameter

Hydrogent/interface/Tasks/HnTask.hpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected