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

Method addInOutDepthTarget

source/RenderGraph/FramePass.cpp:547–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545 }
546
547 Attachment const * FramePass::addInOutDepthTarget( Attachment const & attachment )
548 {
549 auto attachName = fpass::adjustName( *this, attachment.view().data->name ) + "/IORdp";
550 auto result = addOwnAttach( attachment.imageAttach.views
551 , std::move( attachName )
552 , Attachment::FlagKind( Attachment::Flag::InOut )
553 , ImageAttachment::FlagKind( ImageAttachment::Flag::Depth )
554 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eStore
555 , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare
556 , ClearValue{ ClearDepthStencilValue{} }
557 , PipelineColorBlendAttachmentState{}
558 , ImageLayout::eDepthStencilAttachment
559 , &attachment );
560 m_targets.emplace_back( result );
561 return result;
562 }
563
564 Attachment const * FramePass::addInOutStencilTarget( Attachment const & attachment )
565 {

Callers 1

TESTFunction · 0.80

Calls 2

adjustNameFunction · 0.85
viewMethod · 0.80

Tested by 1

TESTFunction · 0.64