From 540ed72e99d783f03574a63077c876deed9a6aaf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 1 Feb 2022 01:39:40 -0500 Subject: video_core/shader_cache: Take std::span in RemoveShadersFromStorage() Same behavior, but without the need to move into the function to avoid an allocation. --- src/video_core/shader_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core/shader_cache.h') 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 removed_shaders); + void RemoveShadersFromStorage(std::span removed_shaders); /// @brief Creates a new entry in the lookup cache and returns its pointer /// @pre lookup_mutex is locked -- cgit v1.2.3