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

Method addInOutDepthStencilTarget

source/RenderGraph/FramePass.cpp:581–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579 }
580
581 Attachment const * FramePass::addInOutDepthStencilTarget( Attachment const & attachment )
582 {
583 auto attachName = fpass::adjustName( *this, attachment.view().data->name ) + "/IORds";
584 auto result = addOwnAttach( attachment.imageAttach.views
585 , std::move( attachName )
586 , Attachment::FlagKind( Attachment::Flag::InOut )
587 , ImageAttachment::FlagKind( ImageAttachment::Flag::StencilInOut ) | ImageAttachment::FlagKind( ImageAttachment::Flag::DepthStencil )
588 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eStore
589 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eStore
590 , ClearValue{ ClearDepthStencilValue{} }
591 , PipelineColorBlendAttachmentState{}
592 , ImageLayout::eDepthStencilAttachment
593 , &attachment );
594 m_targets.emplace_back( result );
595 return result;
596 }
597
598 Attachment const * FramePass::addOutputColourTarget( ImageViewIdArray views
599 , ClearColorValue clearValue )

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

adjustNameFunction · 0.85
viewMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64