| 211 | } |
| 212 | |
| 213 | Attachment const * FramePass::addOutputStorageBuffer( BufferViewIdArray buffers |
| 214 | , uint32_t binding ) |
| 215 | { |
| 216 | auto attachName = fpass::adjustName( *this, buffers.front().data->name ) + "/OSB"; |
| 217 | auto result = addOwnAttach( std::move( buffers ) |
| 218 | , std::move( attachName ) |
| 219 | , Attachment::FlagKind( Attachment::Flag::Output ) |
| 220 | , BufferAttachment::FlagKind( BufferAttachment::Flag::Storage ) |
| 221 | , AccessState{} |
| 222 | , nullptr ); |
| 223 | m_outputs.try_emplace( binding, result ); |
| 224 | return result; |
| 225 | } |
| 226 | |
| 227 | Attachment const * FramePass::addClearableOutputStorageBuffer( BufferViewIdArray buffers |
| 228 | , uint32_t binding ) |