mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-29 03:44:42 +01:00
14 lines
305 B
C++
14 lines
305 B
C++
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace amdgpu {
|
|
struct RemoteMemory {
|
|
char *shmPointer;
|
|
|
|
template <typename T = void> T *getPointer(std::uint64_t address) const {
|
|
return address ? reinterpret_cast<T *>(shmPointer + address - 0x40000)
|
|
: nullptr;
|
|
}
|
|
};
|
|
} // namespace amdgpu
|