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

Function insertNeededTransition

source/RenderGraph/GraphBuilder.cpp:535–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

buildTransitionsFunction · 0.85

Calls 4

updateStateFunction · 0.85
isImageMethod · 0.80
viewMethod · 0.80
bufferMethod · 0.80

Tested by

no test coverage detected