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

Function updateState

source/RenderGraph/GraphBuilder.cpp:516–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 }
515
516 static void updateState( Attachment const & inputAttach
517 , std::vector< ImageLayout > & states
518 , bool separateDepthStencilLayouts )
519 {
520 auto id = inputAttach.view().id;
521 while ( states.size() <= id )
522 states.resize( std::max< size_t >( 1u, states.size() * 2u ) );
523 states[id] = inputAttach.getImageLayout( separateDepthStencilLayouts );
524 }
525
526 static void updateState( Attachment const & inputAttach
527 , std::vector< AccessFlags > & states )

Callers 1

insertNeededTransitionFunction · 0.85

Calls 5

viewMethod · 0.80
sizeMethod · 0.80
getImageLayoutMethod · 0.80
bufferMethod · 0.80
getAccessMaskMethod · 0.80

Tested by

no test coverage detected