From c712d72297ad5d8dca5e61b2d93a034312fda79d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 22 Oct 2018 19:05:03 -0700 Subject: Fixed https://github.com/DiligentGraphics/DiligentCore/issues/37 (build error on VS2015) --- Graphics/GraphicsEngineVulkan/include/VulkanUploadHeap.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/VulkanUploadHeap.h b/Graphics/GraphicsEngineVulkan/include/VulkanUploadHeap.h index eadce104..7414edee 100644 --- a/Graphics/GraphicsEngineVulkan/include/VulkanUploadHeap.h +++ b/Graphics/GraphicsEngineVulkan/include/VulkanUploadHeap.h @@ -111,9 +111,17 @@ private: struct UploadPageInfo { + UploadPageInfo(VulkanUtilities::VulkanMemoryAllocation&& _MemAllocation, + VulkanUtilities::BufferWrapper&& _Buffer, + Uint8* _CPUAddress) : + MemAllocation(std::move(_MemAllocation)), + Buffer (std::move(_Buffer)), + CPUAddress (_CPUAddress) + { + } VulkanUtilities::VulkanMemoryAllocation MemAllocation; VulkanUtilities::BufferWrapper Buffer; - Uint8* CPUAddress = nullptr; + Uint8* const CPUAddress = nullptr; }; std::vector m_Pages; -- cgit v1.2.3