memory_detect.h 491 B

12345678910111213141516171819202122
  1. // Copyright 2020 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/common_types.h"
  6. namespace Common {
  7. struct MemoryInfo {
  8. u64 TotalPhysicalMemory{};
  9. u64 TotalSwapMemory{};
  10. };
  11. /**
  12. * Gets the memory info of the host system
  13. * @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes
  14. */
  15. [[nodiscard]] const MemoryInfo& GetMemInfo();
  16. } // namespace Common