Some missed elements to serialise in buffer and image create info

This commit is contained in:
baldurk committed 2016-02-07 18:38:50 +01:00
1 parent 0d23bdc7a0
commit 73ef2a883e
1 file changed
+19
+19
View File
@@ -694,6 +694,19 @@ string ToStrHelper<false, VkMemoryOutputFlagBits>::Get(const VkMemoryOutputFlagB
return ret;
}
template<>
string ToStrHelper<false, VkSharingMode>::Get(const VkSharingMode &el)
{
switch(el)
{
TOSTR_CASE_STRINGIZE(VK_SHARING_MODE_EXCLUSIVE)
TOSTR_CASE_STRINGIZE(VK_SHARING_MODE_CONCURRENT)
default: break;
}
return StringFormat::Fmt("VkSharingMode<%d>", el);
}
template<>
string ToStrHelper<false, VkBufferViewType>::Get(const VkBufferViewType &el)
{
@@ -1318,6 +1331,9 @@ void Serialiser::Serialise(const char *name, VkBufferCreateInfo &el)
Serialise("size", el.size);
Serialise("usage", (VkBufferUsageFlagBits &)el.usage);
Serialise("flags", (VkBufferCreateFlagBits &)el.flags);
Serialise("sharingMode", el.sharingMode);
if(m_Mode == READING) el.pQueueFamilyIndices = NULL;
SerialisePODArray("pQueueFamilyIndices", (uint32_t *&)el.pQueueFamilyIndices, el.queueFamilyCount);
}
template<>
@@ -1354,6 +1370,9 @@ void Serialiser::Serialise(const char *name, VkImageCreateInfo &el)
Serialise("tiling", el.tiling);
Serialise("usage", (VkImageUsageFlagBits &)el.usage);
Serialise("flags", (VkImageCreateFlagBits &)el.flags);
Serialise("sharingMode", el.sharingMode);
if(m_Mode == READING) el.pQueueFamilyIndices = NULL;
SerialisePODArray("pQueueFamilyIndices", (uint32_t *&)el.pQueueFamilyIndices, el.queueFamilyCount);
}
template<>