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

Method addOutputDepthStencilTarget

source/RenderGraph/FramePass.cpp:652–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650 }
651
652 Attachment const * FramePass::addOutputDepthStencilTarget( ImageViewIdArray views
653 , ClearDepthStencilValue clearValue )
654 {
655 auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/ORds";
656 auto result = addOwnAttach( std::move( views )
657 , std::move( attachName )
658 , Attachment::FlagKind( Attachment::Flag::Output )
659 , ImageAttachment::FlagKind( ImageAttachment::FlagKind( ImageAttachment::Flag::StencilOutput ) | ImageAttachment::FlagKind( ImageAttachment::Flag::DepthStencil ) )
660 , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore
661 , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore
662 , ClearValue{ std::move( clearValue ) }
663 , PipelineColorBlendAttachmentState{}
664 , ImageLayout::eDepthStencilAttachment
665 , nullptr );
666 m_targets.emplace( m_targets.begin(), result );
667 return result;
668 }
669
670 void FramePass::addImplicit( Attachment const & attachment
671 , AccessState wantedAccess )

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
buildDeferredFunction · 0.80
buildWeightedBlendedFunction · 0.80
TESTFunction · 0.80

Calls 3

adjustNameFunction · 0.85
emplaceMethod · 0.80
beginMethod · 0.80

Tested by 6

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
buildDeferredFunction · 0.64
buildWeightedBlendedFunction · 0.64
TESTFunction · 0.64