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