mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-08 08:44:39 +01:00
13 lines
276 B
C++
13 lines
276 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) : nullptr;
|
|
}
|
|
};
|
|
} // namespace amdgpu
|