Merge pull request #312 from Borchev/main

Add sceKernelGetDirectMemoryType, update sceKernelReserveVirtualRange
This commit is contained in:
georgemoralis 2024-07-21 22:52:50 +03:00 committed by GitHub
commit 36ec7a1a43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 2 deletions

View file

@ -166,6 +166,9 @@ public:
std::pair<vk::Buffer, size_t> GetVulkanBuffer(VAddr addr);
int GetDirectMemoryType(PAddr addr, int* directMemoryTypeOut, void** directMemoryStartOut,
void** directMemoryEndOut);
private:
VMAHandle FindVMA(VAddr target) {
return std::prev(vma_map.upper_bound(target));