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

Method addInputDepthTarget

source/RenderGraph/FramePass.cpp:481–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479 }
480
481 void FramePass::addInputDepthTarget( Attachment const & attachment )
482 {
483 auto attachName = fpass::adjustName( *this, attachment.view().data->name ) + "/IRdp";
484 auto attach = addOwnAttach( attachment.imageAttach.views
485 , std::move( attachName )
486 , Attachment::FlagKind( Attachment::Flag::Input )
487 , ImageAttachment::FlagKind( ImageAttachment::Flag::Depth )
488 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eDontCare
489 , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare
490 , ClearValue{ ClearDepthStencilValue{} }
491 , PipelineColorBlendAttachmentState{}
492 , ImageLayout::eDepthStencilAttachment
493 , &attachment );
494 m_targets.emplace_back( attach );
495 }
496
497 void FramePass::addInputStencilTarget( Attachment const & attachment )
498 {

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

adjustNameFunction · 0.85
viewMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64