diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-07-02 13:08:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-02 13:08:37 +0200 |
| commit | 3bcd7aced92206d24ded30e0a595d2d87875e9f0 (patch) | |
| tree | 1b582773b15ee262c1c8650d2ba6adcb40f9c73b /Source/Core/VideoCommon/AsyncShaderCompiler.h | |
| parent | 2f228310affd10297d4e7d61ad2aa2c910b69eac (diff) | |
| parent | 7faf5ea170f23de3b4a7b9362926490c5b7a97bc (diff) | |
Merge pull request #8467 from CookiePLMonster/interruptable-shader-precompile
Make shader precompilation interruptable
Diffstat (limited to 'Source/Core/VideoCommon/AsyncShaderCompiler.h')
| -rw-r--r-- | Source/Core/VideoCommon/AsyncShaderCompiler.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/AsyncShaderCompiler.h b/Source/Core/VideoCommon/AsyncShaderCompiler.h index 15f46f1a0a..8773891d61 100644 --- a/Source/Core/VideoCommon/AsyncShaderCompiler.h +++ b/Source/Core/VideoCommon/AsyncShaderCompiler.h @@ -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); |
