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

Method GetParameter

Hydrogent/src/HnMaterialNetwork.cpp:1251–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249}
1250
1251const HnMaterialParameter* HnMaterialNetwork::GetParameter(HnMaterialParameter::ParamType Type, const pxr::TfToken& Name) const
1252{
1253 for (const auto& Param : m_Parameters)
1254 {
1255 if (Param.Type == Type && Param.Name == Name)
1256 {
1257 return &Param;
1258 }
1259 }
1260
1261 return nullptr;
1262}
1263
1264} // namespace USD
1265

Callers 5

ReadFallbackValueFunction · 0.45
ApplyTextureInputScaleFunction · 0.45
InitTextureAttribsMethod · 0.45
AllocateTexturesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected