diff options
| author | bunnei <bunneidev@gmail.com> | 2020-09-03 11:34:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-03 11:34:30 -0400 |
| commit | 39319f09d8e4c5818fda7c15568a7332107b111e (patch) | |
| tree | 400e6ff9cf86ee85760e80da24ff2db4011a7572 /src/video_core/shader/async_shaders.cpp | |
| parent | ded0b9d0938ac050656cc5380bf5da30addd886b (diff) | |
| parent | bafef3d1c98240085eb6ab8ed934221451c66c68 (diff) | |
Merge pull request #4575 from lioncash/async
async_shaders: Mark getters as const member functions
Diffstat (limited to 'src/video_core/shader/async_shaders.cpp')
| -rw-r--r-- | src/video_core/shader/async_shaders.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/async_shaders.cpp b/src/video_core/shader/async_shaders.cpp index f815584f7..aabd62c5c 100644 --- a/src/video_core/shader/async_shaders.cpp +++ b/src/video_core/shader/async_shaders.cpp @@ -73,11 +73,11 @@ void AsyncShaders::KillWorkers() { worker_threads.clear(); } -bool AsyncShaders::HasWorkQueued() { +bool AsyncShaders::HasWorkQueued() const { return !pending_queue.empty(); } -bool AsyncShaders::HasCompletedWork() { +bool AsyncShaders::HasCompletedWork() const { std::shared_lock lock{completed_mutex}; return !finished_work.empty(); } @@ -102,7 +102,7 @@ bool AsyncShaders::IsShaderAsync(const Tegra::GPU& gpu) const { } std::vector<AsyncShaders::Result> AsyncShaders::GetCompletedWork() { - std::vector<AsyncShaders::Result> results; + std::vector<Result> results; { std::unique_lock lock{completed_mutex}; results.assign(std::make_move_iterator(finished_work.begin()), |
