diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-06-04 01:25:01 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-06-04 01:25:01 +0000 |
| commit | 6088509b52673b767b8c883421e68afa9c4da670 (patch) | |
| tree | 46dbe001e85bb49e6441cb4fc873debc29582dac /Graphics/GraphicsEngine | |
| parent | Implemented Vulkan memory manager (diff) | |
| download | DiligentCore-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.h | 10 |
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 |
