Zorro666 / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org/builds
MIT License
3 stars 1 forks source link

Extend enum text serialisation #91

Closed Zorro666 closed 1 year ago

Zorro666 commented 1 year ago

Description

Extend the structured serialisation and the XML to/from SDObject serialisation to support enums which are not 4-byte's in size.

Before this change enums were assumed to be 4-bytes in size which led to incorrect serialisation from RDC to XML to RDC on chunks which contained non 4-byte enums.

Extended an existing StructuredFile serialisation test to include basic support for 1/2/8 byte enums (the test already covers 4 byte enums).

Added new SDObject -> XML -> SDObject round trip tests directly to xml_codecs.cpp to verify the XML serialisation changes.

Zorro666 commented 1 year ago

https://github.com/baldurk/renderdoc/pull/2796