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

◆ surface_batch()

std::shared_ptr< Buffers::FormaBuffer > MayaFlux::Portal::Forma::internal::Atelier::surface_batch ( Surface & surface)
nodiscard

The buffer everything placed on surface without a buffer of its own draws into.

Held by the surface's Layer and made on first use, and again when the last slice of the previous one was retired. Elements draw in the order they were placed, so hit order and draw order agree.

Definition at line 180 of file Atelier.cpp.

181{
182 auto& layer = surface.layer();
183 if (!layer.m_batch || layer.m_batch->needs_removal()) {
184 layer.m_batch = create_batch(surface);
185 }
186 return layer.m_batch;
187}
std::shared_ptr< Buffers::FormaBuffer > create_batch(const Surface &surface, int64_t priority=0)
A new buffer for shared Forma content, not registered with any Layer.
Definition Atelier.cpp:171

References create_batch(), MayaFlux::Portal::Forma::Surface::layer(), and MayaFlux::Portal::Forma::Layer::m_batch.

Referenced by batch_slice(), place_adornments(), and MayaFlux::Portal::Forma::plot().

Here is the call graph for this function:
Here is the caller graph for this function: