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

Method getLayoutState

source/RenderGraph/LayerLayoutStatesHandler.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 LayoutState LayerLayoutStatesHandler::getLayoutState( ImageId image
52 , ImageViewType viewType
53 , ImageSubresourceRange const & subresourceRange )const
54 {
55 if ( auto imageIt = images.find( image.id ); imageIt != images.end() )
56 {
57 auto range = getVirtualRange( image
58 , viewType
59 , subresourceRange );
60 return getSubresourceRangeLayout( imageIt->second
61 , range );
62 }
63
64 return { ImageLayout::eUndefined, { AccessFlags::eNone, PipelineStageFlags::eBottomOfPipe } };
65 }
66
67 LayoutState LayerLayoutStatesHandler::getLayoutState( ImageViewId view )const
68 {

Callers

nothing calls this directly

Calls 4

getVirtualRangeFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected