rpcsx/hw/amdgpu/include/amdgpu/RemoteMemory.hpp

14 lines
305 B
C++
Raw Normal View History

2023-06-24 14:59:27 +02:00
#pragma once
#include <cstdint>
namespace amdgpu {
struct RemoteMemory {
char *shmPointer;
template <typename T = void> T *getPointer(std::uint64_t address) const {
2023-07-06 18:16:25 +02:00
return address ? reinterpret_cast<T *>(shmPointer + address - 0x40000)
: nullptr;
2023-06-24 14:59:27 +02:00
}
};
} // namespace amdgpu