diff options
| author | 2019-03-03 23:17:35 -0500 | |
|---|---|---|
| committer | 2019-03-20 22:36:02 -0400 | |
| commit | 241563d15c8b831a2d2b7c360d570cc721903d14 (patch) | |
| tree | f43f13d6af3b9b7e2cc92d241d7aabc490ee6ef0 /src/common | |
| parent | Merge pull request #2272 from lioncash/boost (diff) | |
| download | yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.gz yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.xz yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.zip | |
gpu: Move GPUVAddr definition to common_types.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/common_types.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h index 6b1766dca..4cec89fbd 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h | |||
| @@ -40,10 +40,9 @@ using s64 = std::int64_t; ///< 64-bit signed int | |||
| 40 | using f32 = float; ///< 32-bit floating point | 40 | using f32 = float; ///< 32-bit floating point |
| 41 | using f64 = double; ///< 64-bit floating point | 41 | using f64 = double; ///< 64-bit floating point |
| 42 | 42 | ||
| 43 | // TODO: It would be nice to eventually replace these with strong types that prevent accidental | 43 | using VAddr = u64; ///< Represents a pointer in the userspace virtual address space. |
| 44 | // conversion between each other. | 44 | using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space. |
| 45 | using VAddr = u64; ///< Represents a pointer in the userspace virtual address space. | 45 | using GPUVAddr = u64; ///< Represents a pointer in the GPU virtual address space. |
| 46 | using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space. | ||
| 47 | 46 | ||
| 48 | using u128 = std::array<std::uint64_t, 2>; | 47 | using u128 = std::array<std::uint64_t, 2>; |
| 49 | static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide"); | 48 | static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide"); |