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

Method removeEdge

Source/Falcor/RenderGraph/RenderGraph.cpp:323–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void RenderGraph::removeEdge(const std::string& src, const std::string& dst)
324{
325 str_pair srcPair, dstPair;
326 const RenderPass* pSrc = getRenderPassAndNamePair(false, src, srcPair);
327 const RenderPass* pDst = getRenderPassAndNamePair(true, dst, dstPair);
328
329 uint32_t srcIndex = mNameToIndex[srcPair.first];
330
331 const DirectedGraph::Node* pSrcNode = mpGraph->getNode(srcIndex);
332
333 for (uint32_t i = 0; i < pSrcNode->getOutgoingEdgeCount(); ++i)
334 {
335 uint32_t edgeID = pSrcNode->getOutgoingEdge(i);
336 if (mEdgeData[edgeID].srcField == srcPair.second)
337 {
338 if (mEdgeData[edgeID].dstField == dstPair.second)
339 {
340 removeEdge(edgeID);
341 return;
342 }
343 }
344 }
345}
346
347void RenderGraph::removeEdge(uint32_t edgeID)
348{

Callers 2

updateMethod · 0.45
insertAutoPassesMethod · 0.45

Calls 5

getNodeMethod · 0.80
getOutgoingEdgeCountMethod · 0.80
getOutgoingEdgeMethod · 0.80
eraseMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected