mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Add version check in newly added serialise
This commit is contained in:
@@ -4019,7 +4019,15 @@ void DoSerialise(SerialiserType &ser, DescriptorSetSlot &el)
|
||||
SERIALISE_MEMBER(bufferInfo).TypedAs("VkDescriptorBufferInfo"_lit);
|
||||
SERIALISE_MEMBER(imageInfo).TypedAs("VkDescriptorImageInfo"_lit);
|
||||
SERIALISE_MEMBER(texelBufferView).TypedAs("VkBufferView"_lit);
|
||||
SERIALISE_MEMBER(inlineOffset).Named("InlineDataOffset"_lit);
|
||||
|
||||
if(ser.VersionAtLeast(0x12))
|
||||
{
|
||||
SERIALISE_MEMBER(inlineOffset).Named("InlineDataOffset"_lit);
|
||||
}
|
||||
else if(ser.IsReading())
|
||||
{
|
||||
el.inlineOffset = 0;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename SerialiserType>
|
||||
|
||||
Reference in New Issue
Block a user