mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Add serialisation of VkCommandBufferInheritanceRenderingInfo::flags
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user