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

Method getNextLayoutState

source/RenderGraph/RunnableGraph.cpp:538–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

getLayoutStateMethod · 0.45

Tested by

no test coverage detected