| 321 | } |
| 322 | |
| 323 | void 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 | |
| 347 | void RenderGraph::removeEdge(uint32_t edgeID) |
| 348 | { |
no test coverage detected