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

◆ create_buffer() [4/4]

MAYAFLUX_API std::shared_ptr< Buffers::FormaBuffer > MayaFlux::Portal::Forma::create_buffer ( std::shared_ptr< Core::Window window,
Graphics::PrimitiveTopology  topology,
std::vector< std::pair< std::string, std::shared_ptr< Core::VKImage > > >  additional_textures 
)

Construct and register a FormaBuffer with additional texture bindings.

BufferManager is taken from the stored initialize() state.

Parameters
windowTarget window.
topologyPrimitive topology.
additional_texturesVector of { descriptor name, image } pairs for additional texture bindings. These are in addition to any default_texture_binding set in the RenderConfig passed to setup_rendering().
Returns
Registered, render-ready FormaBuffer.

Definition at line 226 of file Forma.cpp.

230{
231 return internal::create_buffer_impl(std::move(window), internal::k_capacity_bytes, topology, {}, std::move(additional_textures));
232}

References MayaFlux::Portal::Forma::internal::create_buffer_impl(), and MayaFlux::Portal::Forma::internal::k_capacity_bytes.

+ Here is the call graph for this function: