summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/physical_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/physical_memory.h')
-rw-r--r--src/core/hle/kernel/physical_memory.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/physical_memory.h b/src/core/hle/kernel/physical_memory.h
index dd49c75a2..090565310 100644
--- a/src/core/hle/kernel/physical_memory.h
+++ b/src/core/hle/kernel/physical_memory.h
@@ -8,6 +8,12 @@
namespace Kernel {
+// This encapsulation serves 2 purposes:
+// - First, to encapsulate host physical memory under a single type and set an
+// standard for managing it.
+// - Second to ensure all host backing memory used is aligned to 256 bytes due
+// to strict alignment restrictions on GPU memory.
+
using PhysicalMemory = std::vector<u8, Common::AlignmentAllocator<u8, 256>>;
-}
+} // namespace Kernel