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

Method addInputDepthStencilTargetImage

source/RenderGraph/FramePass.cpp:449–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447 }
448
449 void FramePass::addInputDepthStencilTargetImage( ImageViewIdArray views )
450 {
451 auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/IRds";
452 auto result = addOwnAttach( std::move( views )
453 , std::move( attachName )
454 , Attachment::FlagKind( Attachment::Flag::Input )
455 , ImageAttachment::FlagKind( ImageAttachment::Flag::StencilInput ) | ImageAttachment::FlagKind( ImageAttachment::Flag::DepthStencil )
456 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eDontCare
457 , AttachmentLoadOp::eLoad, AttachmentStoreOp::eDontCare
458 , ClearValue{ ClearDepthStencilValue{} }
459 , PipelineColorBlendAttachmentState{}
460 , ImageLayout::eDepthStencilAttachment
461 , nullptr );
462 m_targets.emplace_back( result );
463 }
464
465 void FramePass::addInputColourTarget( Attachment const & attachment )
466 {

Callers 1

TESTFunction · 0.80

Calls 1

adjustNameFunction · 0.85

Tested by 1

TESTFunction · 0.64