| 668 | } |
| 669 | |
| 670 | void FramePass::addImplicit( Attachment const & attachment |
| 671 | , AccessState wantedAccess ) |
| 672 | { |
| 673 | auto attachName = fpass::adjustName( *this, attachment.buffer().data->name ) + "/Impl"; |
| 674 | auto attach = addOwnAttach( attachment.bufferAttach.buffers |
| 675 | , std::move( attachName ) |
| 676 | , Attachment::FlagKind( Attachment::Flag::Input ) |
| 677 | , BufferAttachment::FlagKind( BufferAttachment::FlagKind( BufferAttachment::Flag::Transition ) | attachment.bufferAttach.getFormatFlags() ) |
| 678 | , std::move( wantedAccess ) |
| 679 | , &attachment ); |
| 680 | m_inputs.try_emplace( ImplicitOffset + uint32_t( m_inputs.size() ), attach ); |
| 681 | } |
| 682 | |
| 683 | void FramePass::addImplicit( Attachment const & attachment |
| 684 | , ImageLayout wantedLayout ) |