| 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 | //********************************************************************************************* |
no test coverage detected