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

Method addInputDepthStencilTarget

source/RenderGraph/FramePass.cpp:513–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 }
512
513 void FramePass::addInputDepthStencilTarget( Attachment const & attachment )
514 {
515 auto attachName = fpass::adjustName( *this, attachment.view().data->name ) + "/IRds";
516 auto attach = addOwnAttach( attachment.imageAttach.views
517 , std::move( attachName )
518 , Attachment::FlagKind( Attachment::Flag::Input )
519 , ImageAttachment::FlagKind( ImageAttachment::Flag::StencilInput ) | ImageAttachment::FlagKind( ImageAttachment::Flag::DepthStencil )
520 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eDontCare
521 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eDontCare
522 , ClearValue{ ClearDepthStencilValue{} }
523 , PipelineColorBlendAttachmentState{}
524 , ImageLayout::eDepthStencilAttachment
525 , &attachment );
526 m_targets.emplace_back( attach );
527 }
528
529 Attachment const * FramePass::addInOutColourTarget( Attachment const & attachment
530 , PipelineColorBlendAttachmentState blendState )

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
buildDeferredFunction · 0.80
buildWeightedBlendedFunction · 0.80

Calls 2

adjustNameFunction · 0.85
viewMethod · 0.80

Tested by 4

TESTFunction · 0.64
TESTFunction · 0.64
buildDeferredFunction · 0.64
buildWeightedBlendedFunction · 0.64