summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-05-31 03:57:21 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-05-31 03:57:21 +0000
commit103f32b78935243783208d610b7a03d5e84a8958 (patch)
treea8b14837a74a9d8012157105f3354e61ce279aa7 /Graphics/GraphicsEngineVulkan
parentImplemented UpdateData() for buffer vk (diff)
downloadDiligentCore-103f32b78935243783208d610b7a03d5e84a8958.tar.gz
DiligentCore-103f32b78935243783208d610b7a03d5e84a8958.zip
Added initial size of the dynamic heap in vulkan to creation attribs
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
index b7ef1308..2e9ae589 100644
--- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
@@ -111,11 +111,7 @@ RenderDeviceVkImpl :: RenderDeviceVkImpl(IReferenceCounters *pRefCounters,
);
{
-#ifdef _DEBUG
- size_t InitialSize = 1024+64;
-#else
- size_t InitialSize = 64<<10;//16<<20;
-#endif
+ auto InitialSize = ctx == 0 ? CreationAttribs.ImmediateCtxDynamicHeapInitialSize : CreationAttribs.DeferredCtxDynamicHeapInitialSize;
auto &UploadHeapAllocator = GetRawAllocator();
auto *pRawMem = ALLOCATE(UploadHeapAllocator, "DynamicUploadHeap instance", sizeof(VulkanDynamicHeap));
auto *pNewHeap = new (pRawMem) VulkanDynamicHeap(GetRawAllocator(), this, InitialSize);