forked from suyu/suyu
19 lines
574 B
C++
19 lines
574 B
C++
// Copyright 2019 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "common/alignment.h"
|
|
|
|
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
|