GPU: Add Reactive flushing

This commit is contained in:
Fernando Sahmkow 2023-04-30 17:14:06 +02:00
parent 36a670a4c9
commit 6bc60f78d9
24 changed files with 240 additions and 30 deletions

View file

@ -55,8 +55,8 @@ public:
// Unlike other fences, this one doesn't
void SignalOrdering() {
std::scoped_lock lock{buffer_cache.mutex};
buffer_cache.AccumulateFlushes();
std::function<void()> do_nothing([]{});
SignalFence(std::move(do_nothing));
}
void SyncOperation(std::function<void()>&& func) {