MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / addClearableOutputStorageBuffer

Method addClearableOutputStorageBuffer

source/RenderGraph/FramePass.cpp:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 )

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

adjustNameFunction · 0.85

Tested by 4

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64