diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-30 02:08:33 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 05:37:55 +0200 |
commit | d14fbfb9b594f003f11902d53f8993466486dc9d (patch) | |
tree | cdb549f8b2a85d7c58c5fdfa39388c8775cd60e6 /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | gl_rasterizer: Drop gl_global_cache in favor of gl_buffer_cache (diff) | |
download | yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.tar yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.tar.gz yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.tar.bz2 yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.tar.lz yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.tar.xz yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.tar.zst yuzu-d14fbfb9b594f003f11902d53f8993466486dc9d.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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index b4fbd201d..4267a5067 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -33,6 +33,10 @@ public: return size; } + u8* GetWritableHostPtr() const { + return host_ptr; + } + std::size_t GetSize() const { return size; } @@ -63,6 +67,7 @@ public: } private: + u8* host_ptr{}; VAddr cpu_addr{}; std::size_t size{}; std::size_t capacity{}; @@ -93,7 +98,7 @@ public: protected: // We do not have to flush this cache as things in it are never modified by us. - void FlushObjectInner(const std::shared_ptr<CachedBufferEntry>& object) override {} + void FlushObjectInner(const std::shared_ptr<CachedBufferEntry>& entry) override; private: BufferInfo StreamBufferUpload(const void* raw_pointer, std::size_t size, std::size_t alignment); |