MCPcopy Create free account
hub / github.com/cocos/cocos-engine / getResourceNode

Method getResourceNode

native/cocos/renderer/frame-graph/FrameGraph.cpp:650–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650ResourceNode *FrameGraph::getResourceNode(const VirtualResource *const virtualResource, uint8_t version) noexcept {
651 const auto it = std::find_if(_resourceNodes.begin(), _resourceNodes.end(), [&](const ResourceNode &node) {
652 return node.version == version && node.virtualResource == virtualResource;
653 });
654
655 return it == _resourceNodes.end() ? nullptr : &(*it);
656}
657
658} // namespace framegraph
659} // namespace cc

Callers 8

extractMethod · 0.80
writeMethod · 0.80
DevicePassMethod · 0.80
appendMethod · 0.80
writeMethod · 0.80
canMergeMethod · 0.80

Calls 2

endMethod · 0.65
beginMethod · 0.45

Tested by

no test coverage detected