mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-03-14 05:26:28 +00:00
video_core/shader_cache: Take std::span in RemoveShadersFromStorage()
Same behavior, but without the need to move into the function to avoid an allocation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user