|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Vruta::BroadcastSource< T > > MayaFlux::Kriya::frame_results | ( | Vruta::TaskScheduler & | scheduler, |
| std::function< std::optional< T >()> | fn, | ||
| const std::string & | name = "" |
||
| ) |
Broadcast of what fn returns, taken once per graphics frame.
Adds a routine to scheduler that calls fn every graphics frame and signals each value it returns, registered under name. The routine ends once nothing holds the returned source, or when the task is cancelled.