~shared_fence() noexcept { if (is_valid()) { // Destroying while the vk_fence might still be in use will cause race conditions assert(is_future_signalled()); future.wait(); } }
/** * @brief Wait for the fence to be signaled */ void wait_idle() const { future.wait(); f.wait_idle(); }