Beispiel #1
0
	~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();
		}
	}
Beispiel #2
0
	/**
	*	@brief	Wait for the fence to be signaled
	*/
	void wait_idle() const {
		future.wait();
		f.wait_idle();
	}