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

Function buildTransitions

source/RenderGraph/GraphBuilder.cpp:583–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581 }
582
583 static void buildTransitions( GraphNodePtrArray const & graph
584 , graph::AttachmentStates & states )
585 {
586 for ( auto & node : graph )
587 {
588 if ( node->getKind() == GraphNode::Kind::FramePass )
589 {
590 AttachmentTransitions transitions;
591 for ( auto & transition : node->getImageTransitions() )
592 {
593 if ( !isInNeededState( transition.inputAttach, states ) )
594 insertNeededTransition( transition.outputAttach, transition.inputAttach, transitions, states );
595 }
596 for ( auto & transition : node->getBufferTransitions() )
597 {
598 if ( !isInNeededState( transition.inputAttach, states ) )
599 insertNeededTransition( transition.outputAttach, transition.inputAttach, transitions, states );
600 }
601 node->setTransitions( std::move( transitions ) );
602 }
603 }
604 AttachmentTransitions transitions;
605 }
606 }
607
608 //*********************************************************************************************

Callers 1

buildGraphFunction · 0.85

Calls 4

isInNeededStateFunction · 0.85
insertNeededTransitionFunction · 0.85
getKindMethod · 0.80
setTransitionsMethod · 0.80

Tested by

no test coverage detected