| 225 | } |
| 226 | |
| 227 | Attachment const * FramePass::addClearableOutputStorageBuffer( BufferViewIdArray buffers |
| 228 | , uint32_t binding ) |
| 229 | { |
| 230 | auto attachName = fpass::adjustName( *this, buffers.front().data->name ) + "/OSB"; |
| 231 | auto result = addOwnAttach( std::move( buffers ) |
| 232 | , std::move( attachName ) |
| 233 | , ( Attachment::FlagKind( Attachment::Flag::Output ) | Attachment::FlagKind( Attachment::Flag::Clearable ) ) |
| 234 | , BufferAttachment::FlagKind( BufferAttachment::Flag::Storage ) |
| 235 | , AccessState{} |
| 236 | , nullptr ); |
| 237 | m_outputs.try_emplace( binding, result ); |
| 238 | return result; |
| 239 | } |
| 240 | |
| 241 | Attachment const * FramePass::addOutputStorageImage( ImageViewIdArray views |
| 242 | , uint32_t binding ) |