diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-01-16 05:05:34 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-03-25 01:51:51 +0100 |
commit | 5e982a781201a12c4cee6af2908e4732b4c8d945 (patch) | |
tree | 480bba2bae6f2618b657e3ddb9729eff65c94c2d /src/video_core/renderer_vulkan/vk_buffer_cache.h | |
parent | Garbage Collection: Redesign the algorithm to do a better use of memory. (diff) | |
download | yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.tar yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.tar.gz yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.tar.bz2 yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.tar.lz yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.tar.xz yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.tar.zst yuzu-5e982a781201a12c4cee6af2908e4732b4c8d945.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.h b/src/video_core/renderer_vulkan/vk_buffer_cache.h index 1ee0d8420..d7fdd18ff 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.h +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.h @@ -65,6 +65,12 @@ public: void Finish(); + u64 GetDeviceLocalMemory() const; + + u64 GetDeviceMemoryUsage() const; + + bool CanReportMemoryUsage() const; + [[nodiscard]] StagingBufferRef UploadStagingBuffer(size_t size); [[nodiscard]] StagingBufferRef DownloadStagingBuffer(size_t size); |