diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-28 18:28:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 18:28:57 +0200 |
commit | 4d7e1662c84ef65f7da5a27b0473125cc6759d5c (patch) | |
tree | 63c9f3fc7a8a76af35e0b5890a4388a4250318a4 /src/video_core/gpu.h | |
parent | Merge pull request #1192 from lioncash/unused (diff) | |
parent | gpu: Make memory_manager private (diff) | |
download | yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.gz yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.bz2 yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.lz yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.xz yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.zst yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.zip |
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 2697e1c27..2c3dbd97b 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -117,18 +117,24 @@ public: /// Processes a command list stored at the specified address in GPU memory. void ProcessCommandList(GPUVAddr address, u32 size); + /// Returns a reference to the Maxwell3D GPU engine. + Engines::Maxwell3D& Maxwell3D(); + /// Returns a const reference to the Maxwell3D GPU engine. const Engines::Maxwell3D& Maxwell3D() const; - /// Returns a reference to the Maxwell3D GPU engine. - Engines::Maxwell3D& Maxwell3D(); + /// Returns a reference to the GPU memory manager. + Tegra::MemoryManager& MemoryManager(); - std::unique_ptr<MemoryManager> memory_manager; + /// Returns a const reference to the GPU memory manager. + const Tegra::MemoryManager& MemoryManager() const; private: /// Writes a single register in the engine bound to the specified subchannel void WriteReg(u32 method, u32 subchannel, u32 value, u32 remaining_params); + std::unique_ptr<Tegra::MemoryManager> memory_manager; + /// Mapping of command subchannels to their bound engine ids. std::unordered_map<u32, EngineID> bound_engines; |