From 6088509b52673b767b8c883421e68afa9c4da670 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 3 Jun 2018 18:25:01 -0700 Subject: Implemented reserved memory size in Vk memory manager --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index d379eb94..c30b7d65 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1355,6 +1355,16 @@ namespace Diligent /// Allocation granularity for host-visible memory Uint32 HostVisibleMemoryPageSize = 16 << 20; + + /// Amount of device-local memory reserved by the engine. + /// The engine does not pre-allocate the memory, but rather keeps free + /// pages when resources are released + Uint32 DeviceLocalMemoryReserveSize = 256 << 20; + + /// Amount of host-visible memory reserved by the engine. + /// The engine does not pre-allocate the memory, but rather keeps free + /// pages when resources are released + Uint32 HostVisibleMemoryReserveSize = 256 << 20; }; /// Box -- cgit v1.2.3