improve host and device shared buffer cache modes

This commit is contained in:
Samuliak 2024-11-04 16:03:34 +01:00
parent fbea328b9b
commit a00d409ab7
No known key found for this signature in database
3 changed files with 23 additions and 9 deletions

View file

@ -43,6 +43,11 @@ public:
return (m_bufferCacheType == BufferCacheType::Host);
}
bool NeedsReducedLatency() const
{
return (m_bufferCacheType == BufferCacheType::DeviceShared || m_bufferCacheType == BufferCacheType::Host);
}
MPTR GetImportedMemBaseAddress() const
{
return m_importedMemBaseAddress;