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

Method AddPrimvarReaderParam

Hydrogent/src/HnMaterialNetwork.cpp:1182–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182void HnMaterialNetwork::AddPrimvarReaderParam(const pxr::HdMaterialNetwork2& Network,
1183 const pxr::HdMaterialNode2& Node,
1184 const pxr::SdfPath& NodePath,
1185 const pxr::TfToken& ParamName,
1186 pxr::SdfPathSet& VisitedNodes)
1187{
1188 if (!VisitedNodes.emplace(NodePath).second)
1189 return;
1190
1191 m_Parameters.emplace_back(GetPrimvarReaderParam(Network, Node, NodePath, ParamName));
1192}
1193
1194void HnMaterialNetwork::AddFieldReaderParam(const pxr::HdMaterialNetwork2& Network,
1195 const pxr::HdMaterialNode2& Node,

Callers

nothing calls this directly

Calls 1

GetPrimvarReaderParamFunction · 0.85

Tested by

no test coverage detected