|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Bridge::spawn_sync | ( | uint32_t | id, |
| std::function< void()> | sync_fn | ||
| ) |
Spawn a per-frame GraphicsRoutine that calls sync_fn each tick.
Stores the task name in the outbound_tasks of the record for id so that unbind() cancels it correctly. The coroutine body is type-free – all type-specific work is captured inside sync_fn by the caller.
| id | Element id whose outbound_tasks receives the task name. |
| sync_fn | Callable invoked once per frame. Typically a lambda capturing Mapped<T> by reference and calling sync(). |
Definition at line 368 of file Bridge.cpp.
References MayaFlux::Vruta::TaskScheduler::add_task(), MayaFlux::Kriya::FrameDelay::frames_to_wait, m_records, m_scheduler, and make_task_name().
Here is the call graph for this function: