summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-23 02:05:03 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-23 02:05:03 +0000
commitc712d72297ad5d8dca5e61b2d93a034312fda79d (patch)
treef1eb4b3e56730c69390c25416ccb32ec5a08ef6b
parentFixed CMake bug introduced by glslang setting global CMAKE_DEBUG_POSTFIX vari... (diff)
downloadDiligentCore-c712d72297ad5d8dca5e61b2d93a034312fda79d.tar.gz
DiligentCore-c712d72297ad5d8dca5e61b2d93a034312fda79d.zip
Fixed https://github.com/DiligentGraphics/DiligentCore/issues/37 (build error on VS2015)
-rw-r--r--Graphics/GraphicsEngineVulkan/include/VulkanUploadHeap.h10
-rw-r--r--Primitives/interface/FormatString.h9
2 files changed, 16 insertions, 3 deletions
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<UploadPageInfo> m_Pages;
diff --git a/Primitives/interface/FormatString.h b/Primitives/interface/FormatString.h
index 993abbaf..a3e046d9 100644
--- a/Primitives/interface/FormatString.h
+++ b/Primitives/interface/FormatString.h
@@ -57,9 +57,14 @@ namespace Diligent
template<typename Type>
struct MemorySizeFormatter
{
- Type size = 0;
+ MemorySizeFormatter(Type _size, size_t _precision, Type _ref_size) :
+ size (_size),
+ precision(_precision),
+ ref_size (_ref_size)
+ {}
+ Type size = 0;
size_t precision = 0;
- Type ref_size = 0;
+ Type ref_size = 0;
};
template<typename Type>