early-access version 3815

This commit is contained in:
pineappleEA
2023-08-17 18:04:29 +02:00
parent a925771c4c
commit 16bc256b6e
3 changed files with 7 additions and 8 deletions

View File

@@ -55,6 +55,9 @@ public:
// Unlike other fences, this one doesn't
void SignalOrdering() {
if constexpr (!can_async_check) {
TryReleasePendingFences<false>();
}
std::scoped_lock lock{buffer_cache.mutex};
buffer_cache.AccumulateFlushes();
}
@@ -104,13 +107,9 @@ public:
SignalFence(std::move(func));
}
void WaitPendingFences(bool force) {
void WaitPendingFences([[maybe_unused]] bool force) {
if constexpr (!can_async_check) {
if (force) {
TryReleasePendingFences<true>();
} else {
TryReleasePendingFences<false>();
}
TryReleasePendingFences<true>();
} else {
if (!force) {
return;