| 533 | } |
| 534 | |
| 535 | static void insertNeededTransition( Attachment const & output |
| 536 | , Attachment const & input |
| 537 | , AttachmentTransitions & transitions |
| 538 | , graph::AttachmentStates & states ) |
| 539 | { |
| 540 | if ( output.isImage() ) |
| 541 | { |
| 542 | transitions.imageTransitions.emplace_back( output.view(), output, input ); |
| 543 | updateState( input, states.imageStates, states.separateDepthStencilLayouts ); |
| 544 | } |
| 545 | else |
| 546 | { |
| 547 | transitions.bufferTransitions.emplace_back( output.buffer(), output, input ); |
| 548 | updateState( input, states.bufferStates ); |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | static bool isInNeededState( Attachment const & inputAttach |
| 553 | , std::vector< ImageLayout > const & states |
no test coverage detected