mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Allow to interrupt shader precompilation by stopping emulation
This commit is contained in:
parent
aad42de6c9
commit
dcad3ec892
3 changed files with 17 additions and 16 deletions
|
@ -49,11 +49,9 @@ public:
|
|||
bool HasPendingWork();
|
||||
bool HasCompletedWork();
|
||||
|
||||
// Simpler version without progress updates.
|
||||
void WaitUntilCompletion();
|
||||
|
||||
// Calls progress_callback periodically, with completed_items, and total_items.
|
||||
void WaitUntilCompletion(const std::function<void(size_t, size_t)>& progress_callback);
|
||||
// Returns false if interrupted.
|
||||
bool WaitUntilCompletion(const std::function<void(size_t, size_t)>& progress_callback);
|
||||
|
||||
// Needed because of calling virtual methods in shutdown procedure.
|
||||
bool StartWorkerThreads(u32 num_worker_threads);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue