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

13 lines
286 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-06-25 15:54:49 +02:00
return address ? reinterpret_cast<T *>(shmPointer + address - 0x40000) : nullptr;
2023-06-24 14:59:27 +02:00
}
};
} // namespace amdgpu