summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-06-04 01:25:01 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-06-04 01:25:01 +0000
commit6088509b52673b767b8c883421e68afa9c4da670 (patch)
tree46dbe001e85bb49e6441cb4fc873debc29582dac /Graphics/GraphicsEngine
parentImplemented Vulkan memory manager (diff)
downloadDiligentCore-6088509b52673b767b8c883421e68afa9c4da670.tar.gz
DiligentCore-6088509b52673b767b8c883421e68afa9c4da670.zip
Implemented reserved memory size in Vk memory manager
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h10
1 files changed, 10 insertions, 0 deletions
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