MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / compile

Method compile

source/RenderGraph/FrameGraph.cpp:349–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 }
348
349 RunnableGraphPtr FrameGraph::compile( GraphContext & context )
350 {
351 FramePassArray passes;
352 m_defaultGroup->listPasses( passes );
353
354 if ( passes.empty() )
355 {
356 Logger::logWarning( "No FramePass registered." );
357 CRG_Exception( "No FramePass registered." );
358 }
359
360 auto endPoints = builder::findEndPoints( passes );
361 RootNode root{ *this };
362 GraphNodePtrArray nodes;
363 builder::buildGraph( endPoints, root, nodes, context.separateDepthStencilLayouts );
364 return std::make_unique< RunnableGraph >( *this
365 , std::move( nodes )
366 , std::move( root )
367 , context );
368 }
369
370 LayoutState FrameGraph::getFinalLayoutState( ImageId image
371 , ImageViewType viewType

Callers 7

TESTFunction · 0.80
buildNoPassGraphFunction · 0.80
TESTFunction · 0.80
TYPED_TESTFunction · 0.80
TESTFunction · 0.80
TestBases.cppFile · 0.80

Calls 3

findEndPointsFunction · 0.85
buildGraphFunction · 0.85
listPassesMethod · 0.80

Tested by 5

TESTFunction · 0.64
buildNoPassGraphFunction · 0.64
TESTFunction · 0.64
TYPED_TESTFunction · 0.64
TESTFunction · 0.64