GPU: Add Reactive flushing

This commit is contained in:
Fernando Sahmkow
2023-05-07 23:46:12 +02:00
parent e58090c9c7
commit c6cac2ffaa
24 changed files with 240 additions and 30 deletions
+2 -2
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) {