physical_memory.h 574 B

12345678910111213141516171819
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/alignment.h"
  6. namespace Kernel {
  7. // This encapsulation serves 2 purposes:
  8. // - First, to encapsulate host physical memory under a single type and set an
  9. // standard for managing it.
  10. // - Second to ensure all host backing memory used is aligned to 256 bytes due
  11. // to strict alignment restrictions on GPU memory.
  12. using PhysicalMemory = std::vector<u8, Common::AlignmentAllocator<u8, 256>>;
  13. } // namespace Kernel