|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Bridge::spawn_sync | ( | Layer & | layer, |
| uint32_t | id, | ||
| std::function< void()> | sync_fn | ||
| ) |
Spawn a presentation sync task scoped to a Layer.
The task name is also stored in the outbound_tasks of the record for id, when one exists, so that unbind() cancels it. layer must be owned by a shared_ptr.
| layer | Layer that owns the task. |
| id | Element id used for task naming and diagnostics. |
| sync_fn | Function invoked once per graphics frame. |
Definition at line 450 of file Bridge.cpp.
References MayaFlux::Vruta::TaskScheduler::add_task(), find_record(), MayaFlux::Kriya::FrameDelay::frames_to_wait, m_layer_tasks, m_scheduler, make_task_name(), and name.
Referenced by MayaFlux::Portal::Forma::inspect(), MayaFlux::Portal::Forma::inspect(), MayaFlux::Portal::Forma::inspect(), MayaFlux::Portal::Forma::inspect(), MayaFlux::Portal::Forma::inspect_buffers(), MayaFlux::Portal::Forma::inspect_events(), MayaFlux::Portal::Forma::inspect_node_graph(), and MayaFlux::Portal::Forma::inspect_scheduler().
Here is the call graph for this function:
Here is the caller graph for this function: