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

Function isInNeededState

source/RenderGraph/GraphBuilder.cpp:552–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550 }
551
552 static bool isInNeededState( Attachment const & inputAttach
553 , std::vector< ImageLayout > const & states
554 , bool separateDepthStencilLayouts )
555 {
556 auto id = inputAttach.view().id;
557 if ( states.size() <= id )
558 return false;
559
560 auto & state = states[id];
561 return state == inputAttach.getImageLayout( separateDepthStencilLayouts );
562 }
563
564 static bool isInNeededState( Attachment const & inputAttach
565 , std::vector< AccessFlags > const & states )

Callers 1

buildTransitionsFunction · 0.85

Calls 6

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

Tested by

no test coverage detected