| 382 | } |
| 383 | |
| 384 | Attachment const * FramePass::addOutputTransferImage( ImageViewIdArray views ) |
| 385 | { |
| 386 | auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/OT"; |
| 387 | auto result = addOwnAttach( std::move( views ) |
| 388 | , std::move( attachName ) |
| 389 | , Attachment::FlagKind( Attachment::Flag::Output ) |
| 390 | , ImageAttachment::FlagKind( ImageAttachment::Flag::Transfer ) |
| 391 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 392 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 393 | , ClearValue{} |
| 394 | , PipelineColorBlendAttachmentState{} |
| 395 | , ImageLayout::eTransferDst |
| 396 | , nullptr ); |
| 397 | m_outputs.try_emplace( TransferOffset + uint32_t( m_outputs.size() ), result ); |
| 398 | return result; |
| 399 | } |
| 400 | |
| 401 | void FramePass::addInputColourTargetImage( ImageViewIdArray views ) |
| 402 | { |