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