MayaFlux 0.4.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 18 of file DelayAwaiters.cpp.

19{
20 if constexpr (std::is_same_v<promise_handle, Vruta::graphics_promise>) {
21 if constexpr (requires { h.promise().next_frame; }) {
22 h.promise().next_frame += frames_to_wait;
23 h.promise().active_delay_context = Vruta::DelayContext::FRAME_BASED;
24 }
25 } else {
26 if constexpr (requires { h.promise().domain_mismatch_error("", ""); }) {
27 h.promise().domain_mismatch_error("FrameDelay",
28 "This awaitable is not compatible with the current coroutine promise type.");
29 }
30 }
31}
uint32_t h
Definition InkPress.cpp:28
@ FRAME_BASED
Frame-rate delay (Graphics domain)

References MayaFlux::Vruta::FRAME_BASED, and h.