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; }) {
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)