mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 17:05:08 +00:00
Added amdgpu hw project
This commit is contained in:
parent
1fdadaaee9
commit
a8af9198bf
49 changed files with 28342 additions and 1 deletions
12
hw/amdgpu/include/amdgpu/RemoteMemory.hpp
Normal file
12
hw/amdgpu/include/amdgpu/RemoteMemory.hpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue