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

Method addOutputStorageBuffer

source/RenderGraph/FramePass.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 )

Callers 5

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TestBases.cppFile · 0.80

Calls 1

adjustNameFunction · 0.85

Tested by 4

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