MayaFlux 0.5.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 92 of file Forma.cpp.

96{
97 return internal::atelier().create_buffer(
98 std::move(window), internal::k_capacity_bytes, topology, {},
99 std::move(additional_textures));
100}

References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::create_buffer(), and MayaFlux::Portal::Forma::internal::k_capacity_bytes.

+ Here is the call graph for this function: