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

Function getVirtualRange

source/RenderGraph/FrameGraphPrerequisites.cpp:792–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790 }
791
792 ImageSubresourceRange getVirtualRange( ImageId const & image
793 , ImageViewType viewType
794 , ImageSubresourceRange const & range )noexcept
795 {
796 ImageSubresourceRange result = range;
797
798 if ( viewType == ImageViewType::e3D
799 && ( range.levelCount == 1u
800 || range.levelCount == image.data->info.mipLevels ) )
801 {
802 result.baseArrayLayer = 0u;
803 result.layerCount = getExtent( image ).depth >> range.baseMipLevel;
804 }
805
806 return result;
807 }
808
809 bool match( ImageViewId const & lhs, ImageViewId const & rhs )noexcept
810 {

Callers 5

areOverlappingFunction · 0.85
setLayoutStateMethod · 0.85
getLayoutStateMethod · 0.85
matchFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68