| 1 | #pragma once |
| 2 | |
| 3 | #include <basis/seadTypes.h> |
| 4 | |
| 5 | namespace agl { |
| 6 | |
| 7 | enum class MemoryAttribute : u32 { |
| 8 | Default = 0, |
| 9 | _00 = 1 << 0, |
| 10 | _01 = 1 << 1, |
| 11 | CompressibleMemory = 1 << 2, |
| 12 | CpuCached = 1 << 3, |
| 13 | _04 = 1 << 4, |
| 14 | // PHYSICAL, no CPU and GPU access. |
| 15 | MemoryReserved = 1 << 7, |
| 16 | GpuCached = 1 << 8, |
| 17 | |
| 18 | // TODO: More? |
| 19 | }; |
| 20 | |
| 21 | struct GPUMemVoidAddr { |
| 22 | // FIXME: what are thoses? |
| 23 | void* _0; |
| 24 | void* _8; |
| 25 | u64 mAddress; |
| 26 | |
| 27 | u64 getGPUMemBlock() const { return mAddress; } |
| 28 | }; |
| 29 | |
| 30 | } // namespace agl |
| 31 | |