Add serialisation of VkCommandBufferInheritanceRenderingInfo::flags

This commit is contained in:
baldurk
2022-03-07 14:17:12 +00:00
parent d645d5f0d6
commit 3ef88343ca
3 changed files with 16 additions and 1 deletions
+4
View File
@@ -355,6 +355,10 @@ bool VkInitParams::IsSupportedVersion(uint64_t ver)
if(ver == CurrentVersion)
return true;
// 0x13 -> 0x14 - added missing VkCommandBufferInheritanceRenderingInfo::flags
if(ver == 0x13)
return true;
// 0x12 -> 0x13 - added full sparse resource support
if(ver == 0x12)
return true;
+1 -1
View File
@@ -53,7 +53,7 @@ struct VkInitParams
uint64_t GetSerialiseSize();
// check if a frame capture section version is supported
static const uint64_t CurrentVersion = 0x13;
static const uint64_t CurrentVersion = 0x14;
static bool IsSupportedVersion(uint64_t ver);
};
+11
View File
@@ -7796,6 +7796,17 @@ void DoSerialise(SerialiserType &ser, VkCommandBufferInheritanceRenderingInfo &e
el.sType == VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO);
SerialiseNext(ser, el.sType, el.pNext);
// added in 0x14, it was missing in the initial version
if(ser.VersionAtLeast(0x14))
{
SERIALISE_MEMBER_VKFLAGS(VkRenderingFlags, flags);
}
else
{
if(ser.IsReading())
el.flags = 0;
}
SERIALISE_MEMBER(viewMask);
SERIALISE_MEMBER(colorAttachmentCount);
SERIALISE_MEMBER_ARRAY(pColorAttachmentFormats, colorAttachmentCount);