| 650 | } |
| 651 | |
| 652 | Attachment const * FramePass::addOutputDepthStencilTarget( ImageViewIdArray views |
| 653 | , ClearDepthStencilValue clearValue ) |
| 654 | { |
| 655 | auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/ORds"; |
| 656 | auto result = addOwnAttach( std::move( views ) |
| 657 | , std::move( attachName ) |
| 658 | , Attachment::FlagKind( Attachment::Flag::Output ) |
| 659 | , ImageAttachment::FlagKind( ImageAttachment::FlagKind( ImageAttachment::Flag::StencilOutput ) | ImageAttachment::FlagKind( ImageAttachment::Flag::DepthStencil ) ) |
| 660 | , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore |
| 661 | , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore |
| 662 | , ClearValue{ std::move( clearValue ) } |
| 663 | , PipelineColorBlendAttachmentState{} |
| 664 | , ImageLayout::eDepthStencilAttachment |
| 665 | , nullptr ); |
| 666 | m_targets.emplace( m_targets.begin(), result ); |
| 667 | return result; |
| 668 | } |
| 669 | |
| 670 | void FramePass::addImplicit( Attachment const & attachment |
| 671 | , AccessState wantedAccess ) |