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

Method hasPass

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

Source from the content-addressed store, hash-verified

190}
191
192bool FrameGraph::hasPass(StringHandle handle) {
193 return std::any_of(_passNodes.begin(), _passNodes.end(), [&](const auto &passNode) { return passNode->_name == handle; });
194}
195
196Handle FrameGraph::create(VirtualResource *const virtualResource) {
197 _virtualResources.emplace_back(virtualResource);

Callers 1

renderMethod · 0.80

Calls 2

endMethod · 0.65
beginMethod · 0.45

Tested by

no test coverage detected