diff options
| author | Lioncash <mathew1800@gmail.com> | 2022-02-01 01:39:40 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2022-02-01 01:40:41 -0500 |
| commit | 540ed72e99d783f03574a63077c876deed9a6aaf (patch) | |
| tree | 8e8ecc9388054e7f96e5d3b9f3b6b462039bcae5 /src/video_core/shader_cache.h | |
| parent | 11099dda2e2ab67ba4861d1e927afaa2ccce1efa (diff) | |
video_core/shader_cache: Take std::span in RemoveShadersFromStorage()
Same behavior, but without the need to move into the function to avoid
an allocation.
Diffstat (limited to 'src/video_core/shader_cache.h')
| -rw-r--r-- | src/video_core/shader_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader_cache.h b/src/video_core/shader_cache.h index 136fe294c..65333608c 100644 --- a/src/video_core/shader_cache.h +++ b/src/video_core/shader_cache.h @@ -138,7 +138,7 @@ private: /// @param removed_shaders Shaders to be removed from the storage /// @pre invalidation_mutex is locked /// @pre lookup_mutex is locked - void RemoveShadersFromStorage(std::vector<ShaderInfo*> removed_shaders); + void RemoveShadersFromStorage(std::span<ShaderInfo*> removed_shaders); /// @brief Creates a new entry in the lookup cache and returns its pointer /// @pre lookup_mutex is locked |
