diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-18 00:40:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 00:40:34 +0200 |
commit | f912a82a8efe9a699fef74acb0db9f1779295c32 (patch) | |
tree | 716cce6c0c286c224f3eeb196cdb1bbb4a42850e /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | Merge pull request #1498 from lioncash/aslr (diff) | |
parent | gl_rasterizer_cache: Remove unnecessary block_depth=1 on Flush. (diff) | |
download | yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.tar yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.tar.gz yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.tar.bz2 yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.tar.lz yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.tar.xz yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.tar.zst yuzu-f912a82a8efe9a699fef74acb0db9f1779295c32.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_buffer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index 965976334..be29dc8be 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -15,15 +15,18 @@ namespace OpenGL { -struct CachedBufferEntry final { - VAddr GetAddr() const { +struct CachedBufferEntry final : public RasterizerCacheObject { + VAddr GetAddr() const override { return addr; } - std::size_t GetSizeInBytes() const { + std::size_t GetSizeInBytes() const override { return size; } + // We do not have to flush this cache as things in it are never modified by us. + void Flush() override {} + VAddr addr; std::size_t size; GLintptr offset; |