diff options
author | Liam <byteslice@airmail.cc> | 2023-10-17 16:00:25 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-10-17 16:00:25 +0200 |
commit | d9dde7e6f3a90f58d642808900ddd558da21f762 (patch) | |
tree | ee63e7760efb66b738ef4981751d6fd9bbbbe9a8 /src/video_core/renderer_vulkan/vk_rasterizer.h | |
parent | Merge pull request #11788 from Squall-Leonhart/IFREMOVED (diff) | |
download | yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.gz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.bz2 yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.lz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.xz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.zst yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h index ad069556c..ce3dfbaab 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.h +++ b/src/video_core/renderer_vulkan/vk_rasterizer.h @@ -133,6 +133,10 @@ public: void ReleaseChannel(s32 channel_id) override; + std::scoped_lock<std::recursive_mutex, std::recursive_mutex> LockCaches() { + return std::scoped_lock{buffer_cache.mutex, texture_cache.mutex}; + } + private: static constexpr size_t MAX_TEXTURES = 192; static constexpr size_t MAX_IMAGES = 48; |