diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2024-01-07 07:52:09 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-19 03:12:30 +0100 |
commit | 648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37 (patch) | |
tree | a04969c1af408b377981b395a8f437b852f8b208 /src/core/core.h | |
parent | Core: Eliminate core/memory dependancies. (diff) | |
download | yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.gz yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.bz2 yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.lz yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.xz yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.zst yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 20ec2ffff..80446f385 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -8,6 +8,7 @@ #include <functional> #include <memory> #include <mutex> +#include <span> #include <string> #include <vector> @@ -116,6 +117,7 @@ class CpuManager; class Debugger; class DeviceMemory; class ExclusiveMonitor; +class GPUDirtyMemoryManager; class PerfStats; class Reporter; class SpeedLimiter; @@ -224,6 +226,8 @@ public: /// Prepare the core emulation for a reschedule void PrepareReschedule(u32 core_index); + std::span<GPUDirtyMemoryManager> GetGPUDirtyMemoryManager(); + void GatherGPUDirtyMemory(std::function<void(PAddr, size_t)>& callback); [[nodiscard]] size_t GetCurrentHostThreadID() const; |