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

◆ await_suspend()

void MayaFlux::Kriya::FrameDelay::await_suspend ( std::coroutine_handle< Vruta::graphics_promise h)
noexcept

Definition at line 22 of file Awaiters.cpp.

23{
24 if constexpr (std::is_same_v<promise_handle, Vruta::graphics_promise>
25 || std::is_same_v<promise_handle, Vruta::complex_promise>) {
26 if constexpr (requires { h.promise().next_frame; }) {
27 h.promise().next_frame += frames_to_wait;
28 h.promise().active_delay_context = Vruta::DelayContext::FRAME_BASED;
29 }
30 } else {
31 if constexpr (requires { h.promise().domain_mismatch_error("", ""); }) {
32 h.promise().domain_mismatch_error("FrameDelay",
33 "This awaitable is not compatible with the current coroutine promise type.");
34 }
35 }
36}
@ FRAME_BASED
Frame-rate delay (Graphics domain)

References MayaFlux::Vruta::FRAME_BASED.