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

Function getAspectMask

source/RenderGraph/FrameGraphPrerequisites.cpp:716–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714 }
715
716 ImageAspectFlags getAspectMask( PixelFormat format )noexcept
717 {
718 if ( isDepthStencilFormat( format ) )
719 return ImageAspectFlags::eDepth | ImageAspectFlags::eStencil;
720 if ( isDepthFormat( format ) )
721 return ImageAspectFlags::eDepth;
722 if ( isStencilFormat( format ) )
723 return ImageAspectFlags::eStencil;
724 return ImageAspectFlags::eColor;
725 }
726
727 LayoutState const & addSubresourceRangeLayout( LayerLayoutStates & ranges
728 , ImageSubresourceRange const & range

Callers 3

doProcessImageViewMethod · 0.85
TESTFunction · 0.85
createViewFunction · 0.85

Calls 3

isDepthStencilFormatFunction · 0.85
isDepthFormatFunction · 0.85
isStencilFormatFunction · 0.85

Tested by 1

TESTFunction · 0.68