diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-20 01:59:53 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-06-16 21:35:02 +0200 |
commit | a11bc4a382ebca52bdf0aab1a9474351e8d85cef (patch) | |
tree | 6392fde60f5ee2e414733a193329e18d7f7fde42 /src/video_core/buffer_cache/buffer_base.h | |
parent | vulkan_memory_allocator: Release allocations with no commits (diff) | |
download | yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.tar yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.tar.gz yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.tar.bz2 yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.tar.lz yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.tar.xz yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.tar.zst yuzu-a11bc4a382ebca52bdf0aab1a9474351e8d85cef.zip |
Diffstat (limited to 'src/video_core/buffer_cache/buffer_base.h')
-rw-r--r-- | src/video_core/buffer_cache/buffer_base.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index a39505903..b121d36a3 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -256,6 +256,16 @@ public: stream_score += score; } + /// Sets the new frame tick + void SetFrameTick(u64 new_frame_tick) noexcept { + frame_tick = new_frame_tick; + } + + /// Returns the new frame tick + [[nodiscard]] u64 FrameTick() const noexcept { + return frame_tick; + } + /// Returns the likeliness of this being a stream buffer [[nodiscard]] int StreamScore() const noexcept { return stream_score; @@ -586,6 +596,7 @@ private: RasterizerInterface* rasterizer = nullptr; VAddr cpu_addr = 0; Words words; + u64 frame_tick = 0; BufferFlagBits flags{}; int stream_score = 0; }; |