MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getEdge

Method getEdge

Source/Falcor/RenderGraph/RenderGraph.cpp:356–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356uint32_t RenderGraph::getEdge(const std::string& src, const std::string& dst)
357{
358 str_pair srcPair = parseFieldName(src);
359 str_pair dstPair = parseFieldName(dst);
360
361 for (uint32_t i = 0; i < mpGraph->getCurrentEdgeId(); ++i)
362 {
363 if (!mpGraph->doesEdgeExist(i))
364 {
365 continue;
366 }
367
368 const DirectedGraph::Edge* pEdge = mpGraph->getEdge(i);
369 if (dstPair.first == mNodeData[pEdge->getDestNode()].name && srcPair.first == mNodeData[pEdge->getSourceNode()].name)
370 {
371 if (mEdgeData[i].dstField == dstPair.second && mEdgeData[i].srcField == srcPair.second)
372 return i;
373 }
374 }
375
376 return static_cast<uint32_t>(-1);
377}
378
379bool RenderGraph::isGraphOutput(const GraphOut& graphOut) const
380{

Callers 9

updateMethod · 0.45
resolveExecutionOrderMethod · 0.45
insertAutoPassesMethod · 0.45
allocateResourcesMethod · 0.45
addLinkMethod · 0.45
getNextNodePositionMethod · 0.45
updateDisplayDataMethod · 0.45
getIRMethod · 0.45

Calls 5

parseFieldNameFunction · 0.85
getCurrentEdgeIdMethod · 0.80
doesEdgeExistMethod · 0.80
getDestNodeMethod · 0.80
getSourceNodeMethod · 0.80

Tested by

no test coverage detected