| 614 | } |
| 615 | |
| 616 | Attachment const * FramePass::addOutputDepthTarget( ImageViewIdArray views |
| 617 | , ClearDepthStencilValue clearValue ) |
| 618 | { |
| 619 | auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/ORdp"; |
| 620 | auto result = addOwnAttach( std::move( views ) |
| 621 | , std::move( attachName ) |
| 622 | , Attachment::FlagKind( Attachment::Flag::Output ) |
| 623 | , ImageAttachment::FlagKind( ImageAttachment::Flag::Depth ) |
| 624 | , AttachmentLoadOp::eClear, AttachmentStoreOp::eStore |
| 625 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 626 | , ClearValue{ std::move( clearValue ) } |
| 627 | , PipelineColorBlendAttachmentState{} |
| 628 | , ImageLayout::eDepthAttachment |
| 629 | , nullptr ); |
| 630 | m_targets.emplace( m_targets.begin(), result ); |
| 631 | return result; |
| 632 | } |
| 633 | |
| 634 | Attachment const * FramePass::addOutputStencilTarget( ImageViewIdArray views |
| 635 | , ClearDepthStencilValue clearValue ) |