rpcsx/hw/amdgpu/include/amdgpu/RemoteMemory.hpp
2023-07-06 21:37:30 +01:00

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