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

Method addOutputDepthTarget

source/RenderGraph/FramePass.cpp:616–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 }
615
616 Attachment const * FramePass::addOutputDepthTarget( ImageViewIdArray views
617 , ClearDepthStencilValue clearValue )
618 {
619 auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/ORdp";
620 auto result = addOwnAttach( std::move( views )
621 , std::move( attachName )
622 , Attachment::FlagKind( Attachment::Flag::Output )
623 , ImageAttachment::FlagKind( ImageAttachment::Flag::Depth )
624 , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore
625 , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare
626 , ClearValue{ std::move( clearValue ) }
627 , PipelineColorBlendAttachmentState{}
628 , ImageLayout::eDepthAttachment
629 , nullptr );
630 m_targets.emplace( m_targets.begin(), result );
631 return result;
632 }
633
634 Attachment const * FramePass::addOutputStencilTarget( ImageViewIdArray views
635 , ClearDepthStencilValue clearValue )

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TYPED_TESTFunction · 0.80

Calls 3

adjustNameFunction · 0.85
emplaceMethod · 0.80
beginMethod · 0.80

Tested by 4

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TYPED_TESTFunction · 0.64