| 239 | } |
| 240 | |
| 241 | Attachment const * FramePass::addOutputStorageImage( ImageViewIdArray views |
| 242 | , uint32_t binding ) |
| 243 | { |
| 244 | auto attachName = fpass::adjustName( *this, views.front().data->name ) + "/OStr"; |
| 245 | auto result = addOwnAttach( std::move( views ) |
| 246 | , std::move( attachName ) |
| 247 | , Attachment::FlagKind( Attachment::Flag::Output ) |
| 248 | , ImageAttachment::FlagKind( ImageAttachment::Flag::Storage ) |
| 249 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 250 | , AttachmentLoadOp::eDontCare, AttachmentStoreOp::eDontCare |
| 251 | , ClearValue{} |
| 252 | , PipelineColorBlendAttachmentState{} |
| 253 | , ImageLayout::eGeneral |
| 254 | , nullptr ); |
| 255 | m_outputs.try_emplace( binding, result ); |
| 256 | return result; |
| 257 | } |
| 258 | |
| 259 | Attachment const * FramePass::addClearableOutputStorageImage( ImageViewIdArray views |
| 260 | , uint32_t binding |