| 536 | } |
| 537 | |
| 538 | LayoutState RunnableGraph::getNextLayoutState( RecordContext const & context |
| 539 | , crg::RunnablePass const & runnable |
| 540 | , ImageViewId view )const |
| 541 | { |
| 542 | auto result = context.getNextLayoutState( view ); |
| 543 | |
| 544 | if ( result.layout == ImageLayout::eUndefined ) |
| 545 | { |
| 546 | // Next layout undefined means that there is no pass after this one in the graph. |
| 547 | result = getOutputLayoutState( view ); |
| 548 | } |
| 549 | |
| 550 | if ( result.layout == ImageLayout::eUndefined ) |
| 551 | { |
| 552 | // Prevent from outputing a ImageLayout::eUndefined anyway. |
| 553 | result = runnable.getLayoutState( view ); |
| 554 | } |
| 555 | |
| 556 | return result; |
| 557 | } |
| 558 | |
| 559 | LayoutState RunnableGraph::getOutputLayoutState( ImageViewId view )const |
| 560 | { |
nothing calls this directly
no test coverage detected