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

Method addOutputStencilTarget

source/RenderGraph/FramePass.cpp:634–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632 }
633
634 Attachment const * FramePass::addOutputStencilTarget( ImageViewIdArray views
635 , ClearDepthStencilValue clearValue )
636 {
637 auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/ORst";
638 auto result = addOwnAttach( std::move( views )
639 , std::move( attachName )
640 , Attachment::FlagKind( Attachment::Flag::Output )
641 , ImageAttachment::FlagKind( ImageAttachment::FlagKind( ImageAttachment::Flag::StencilOutput ) | ImageAttachment::FlagKind( ImageAttachment::Flag::Stencil ) )
642 , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare
643 , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore
644 , ClearValue{ std::move( clearValue ) }
645 , PipelineColorBlendAttachmentState{}
646 , ImageLayout::eStencilAttachment
647 , nullptr );
648 m_targets.emplace( m_targets.begin(), result );
649 return result;
650 }
651
652 Attachment const * FramePass::addOutputDepthStencilTarget( ImageViewIdArray views
653 , ClearDepthStencilValue clearValue )

Callers 1

TESTFunction · 0.80

Calls 3

adjustNameFunction · 0.85
emplaceMethod · 0.80
beginMethod · 0.80

Tested by 1

TESTFunction · 0.64