| 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 | { |
nothing calls this directly
no test coverage detected