| 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 ) |