mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-16 16:37:57 -05:00
FenceManager: Implement should wait.
This commit is contained in:
@ -322,6 +322,17 @@ public:
|
||||
uncommited_flushes.reset();
|
||||
}
|
||||
|
||||
bool ShouldWaitAsyncFlushes() {
|
||||
if (commited_flushes.empty()) {
|
||||
return false;
|
||||
}
|
||||
auto& flush_list = commited_flushes.front();
|
||||
if (!flush_list) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void PopAsyncFlushes() {
|
||||
if (commited_flushes.empty()) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user