diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 04:49:45 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 05:37:56 +0200 |
commit | f7691ebe57d083f12969b5e186154a301f7bfae1 (patch) | |
tree | 03f494770c8686d1dffd835f2cac88d92776f23f /src/video_core/buffer_cache.h | |
parent | gl_rasterizer: Minor style changes (diff) | |
download | yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.tar yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.tar.gz yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.tar.bz2 yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.tar.lz yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.tar.xz yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.tar.zst yuzu-f7691ebe57d083f12969b5e186154a301f7bfae1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/buffer_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/buffer_cache.h b/src/video_core/buffer_cache.h index eb0ec45c2..e51f2418c 100644 --- a/src/video_core/buffer_cache.h +++ b/src/video_core/buffer_cache.h @@ -162,6 +162,8 @@ public: return std::exchange(invalidated, false); } + virtual const BufferType* GetEmptyBuffer(std::size_t size) = 0; + protected: void FlushObjectInner(const Buffer& entry) override { DownloadBufferData(entry->GetBuffer(), 0, entry->GetSize(), entry->GetWritableHostPtr()); @@ -171,8 +173,6 @@ protected: virtual const BufferType* ToHandle(const BufferStorageType& storage) = 0; - virtual const BufferType* GetEmptyBuffer(std::size_t size) = 0; - virtual void UploadBufferData(const BufferStorageType& buffer, std::size_t offset, std::size_t size, const u8* data) = 0; |