MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_buffer() [1/2]

template<typename BufferType , typename... Args>
requires std::derived_from<BufferType, Buffers::VKBuffer>
auto MayaFlux::create_buffer ( Args &&...  args) -> std::shared_ptr<BufferType>

creates a new graphics buffer of the specified type and registers it

Template Parameters
BufferTypeType of buffer to create (must be derived from VKBuffer)
ArgsConstructor argument types
Parameters
argsConstructor arguments for the buffer
Returns
Shared pointer to the created buffer

Definition at line 374 of file Graph.hpp.

375{
376 auto buffer = std::make_shared<BufferType>(std::forward<Args>(args)...);
378 return buffer;
379}
std::shared_ptr< NetworkGeometryBuffer > buffer
void register_graphics_buffer(const std::shared_ptr< Buffers::VKBuffer > &buffer, Buffers::ProcessingToken token)
Registers a VKBuffer with the default engine's buffer manager.
Definition Graph.cpp:250

References buffer, and register_graphics_buffer().

+ Here is the call graph for this function: