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

Method addInputStencilTarget

source/RenderGraph/FramePass.cpp:497–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 }
496
497 void FramePass::addInputStencilTarget( Attachment const & attachment )
498 {
499 auto attachName = fpass::adjustName( *this, attachment.view().data->name ) + "/IRst";
500 auto attach = addOwnAttach( attachment.imageAttach.views
501 , std::move( attachName )
502 , Attachment::FlagKind( Attachment::Flag::Input )
503 , ImageAttachment::FlagKind( ImageAttachment::Flag::StencilInput ) | ImageAttachment::FlagKind( ImageAttachment::Flag::Stencil )
504 , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare
505 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eDontCare
506 , ClearValue{ ClearDepthStencilValue{} }
507 , PipelineColorBlendAttachmentState{}
508 , ImageLayout::eDepthStencilAttachment
509 , &attachment );
510 m_targets.emplace_back( attach );
511 }
512
513 void FramePass::addInputDepthStencilTarget( Attachment const & attachment )
514 {

Callers 1

TESTFunction · 0.80

Calls 2

adjustNameFunction · 0.85
viewMethod · 0.80

Tested by 1

TESTFunction · 0.64