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

Method addInOutStencilTarget

source/RenderGraph/FramePass.cpp:564–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562 }
563
564 Attachment const * FramePass::addInOutStencilTarget( Attachment const & attachment )
565 {
566 auto attachName = fpass::adjustName( *this, attachment.view().data->name ) + "/IORst";
567 auto result = addOwnAttach( attachment.imageAttach.views
568 , std::move( attachName )
569 , Attachment::FlagKind( Attachment::Flag::InOut )
570 , ImageAttachment::FlagKind( ImageAttachment::Flag::StencilInOut ) | ImageAttachment::FlagKind( ImageAttachment::Flag::Stencil )
571 , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare
572 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eStore
573 , ClearValue{ ClearDepthStencilValue{} }
574 , PipelineColorBlendAttachmentState{}
575 , ImageLayout::eDepthStencilAttachment
576 , &attachment );
577 m_targets.emplace_back( result );
578 return result;
579 }
580
581 Attachment const * FramePass::addInOutDepthStencilTarget( Attachment const & attachment )
582 {

Callers 1

TESTFunction · 0.80

Calls 2

adjustNameFunction · 0.85
viewMethod · 0.80

Tested by 1

TESTFunction · 0.64