MayaFlux 0.1.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 266 of file Graph.hpp.

267{
268 auto buffer = std::make_shared<BufferType>(std::forward<Args>(args)...);
270 return buffer;
271}
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:160

References register_graphics_buffer().

+ Here is the call graph for this function: