summaryrefslogtreecommitdiffstats
path: root/src/common/host_memory.h
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2021-06-11 11:47:23 +0200
committerMarkus Wick <markus@selfnet.de>2021-06-11 17:27:17 +0200
commit7f85abb28120fbb57bb813b828ee42f2a2031990 (patch)
tree0e4ce28226164e465b8739b22604b1741d2b1c11 /src/common/host_memory.h
parentcommon/host_shader: Load Windows 10 functions dynamically (diff)
downloadyuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.tar
yuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.tar.gz
yuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.tar.bz2
yuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.tar.lz
yuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.tar.xz
yuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.tar.zst
yuzu-7f85abb28120fbb57bb813b828ee42f2a2031990.zip
Diffstat (limited to 'src/common/host_memory.h')
-rw-r--r--src/common/host_memory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/host_memory.h b/src/common/host_memory.h
index eaa7d18ab..9b8326d0f 100644
--- a/src/common/host_memory.h
+++ b/src/common/host_memory.h
@@ -6,6 +6,7 @@
#include <memory>
#include "common/common_types.h"
+#include "common/virtual_buffer.h"
namespace Common {
@@ -61,6 +62,9 @@ private:
u8* backing_base{};
u8* virtual_base{};
size_t virtual_base_offset{};
+
+ // Fallback if fastmem is not supported on this platform
+ std::unique_ptr<Common::VirtualBuffer<u8>> fallback_buffer;
};
} // namespace Common