mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 15:31:18 +12:00
add an option to choose buffer cache type
This commit is contained in:
parent
03d4e86b61
commit
b38ca6a58a
8 changed files with 75 additions and 36 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "Cafe/HW/Latte/Renderer/Metal/MetalBufferAllocator.h"
|
||||
|
||||
#include "GameProfile/GameProfile.h"
|
||||
|
||||
/*
|
||||
struct MetalRestridedBufferRange
|
||||
{
|
||||
|
@ -118,7 +120,7 @@ public:
|
|||
// Getters
|
||||
bool UseHostMemoryForCache() const
|
||||
{
|
||||
return m_useHostMemoryForCache;
|
||||
return (m_bufferCacheType == BufferCacheType::Host);
|
||||
}
|
||||
|
||||
MPTR GetImportedMemBaseAddress() const
|
||||
|
@ -137,6 +139,6 @@ private:
|
|||
//MetalVertexBufferCache m_vertexBufferCache;
|
||||
|
||||
MTL::Buffer* m_bufferCache = nullptr;
|
||||
bool m_useHostMemoryForCache = false;
|
||||
BufferCacheType m_bufferCacheType;
|
||||
MPTR m_importedMemBaseAddress;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue