Memory pool update

This commit is contained in:
Georg Hagen
2024-09-22 19:54:27 +02:00
committed by ohyzha
parent 2142118771
commit 103b305421
2 changed files with 3 additions and 1 deletions

View File

@@ -46,6 +46,8 @@ namespace OpenVulkano::Vulkan
return mapped || allocation->mapped; return mapped || allocation->mapped;
} }
[[nodiscard]] void* GetMappedMemory() const { return mapped; }
/** /**
* \brief Maps the buffer into the memory of the host. * \brief Maps the buffer into the memory of the host.
* \tparam T The type of the buffers data. * \tparam T The type of the buffers data.

View File

@@ -110,7 +110,7 @@ namespace OpenVulkano::Vulkan
break; break;
} }
} }
if(!alloc && createIfAllFull) alloc = CreateMemoryAllocation(64_MiB, type, true); if(!alloc && createIfAllFull) alloc = CreateMemoryAllocation(128_MiB, type, true);
return alloc; return alloc;
} }