diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-02 17:29:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 17:29:01 +0200 |
commit | eaa62aee988454f9cbd58219aa4d82d7e152c61d (patch) | |
tree | 8fa1e87467e9e37fce6ca159d8bb99d2ab907628 /src/core/core.h | |
parent | Merge pull request #10710 from liamwhite/romfs2 (diff) | |
parent | Memory Tracker: Use 64 bit atomics instead of 128 bits (diff) | |
download | yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.tar yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.tar.gz yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.tar.bz2 yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.tar.lz yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.tar.xz yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.tar.zst yuzu-eaa62aee988454f9cbd58219aa4d82d7e152c61d.zip |
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/core.h b/src/core/core.h index 93afc9303..14b2f7785 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -108,9 +108,10 @@ class CpuManager; class Debugger; class DeviceMemory; class ExclusiveMonitor; -class SpeedLimiter; +class GPUDirtyMemoryManager; class PerfStats; class Reporter; +class SpeedLimiter; class TelemetrySession; struct PerfStatsResults; @@ -225,6 +226,14 @@ public: /// Prepare the core emulation for a reschedule void PrepareReschedule(u32 core_index); + /// Provides a reference to the gou dirty memory manager. + [[nodiscard]] Core::GPUDirtyMemoryManager& CurrentGPUDirtyMemoryManager(); + + /// Provides a constant reference to the current gou dirty memory manager. + [[nodiscard]] const Core::GPUDirtyMemoryManager& CurrentGPUDirtyMemoryManager() const; + + void GatherGPUDirtyMemory(std::function<void(VAddr, size_t)>& callback); + [[nodiscard]] size_t GetCurrentHostThreadID() const; /// Gets and resets core performance statistics |