From 0aa7cdda175fac04945852952cda84ecb5825858 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 8 May 2024 15:04:58 +0100 Subject: [PATCH] Set informational chunkIndex attribute on XML export * This is useful to be able to tie a particular chunk when replaying to its location in the XML, where event IDs are hard to come by. --- renderdoc/serialise/codecs/xml_codec.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/serialise/codecs/xml_codec.cpp b/renderdoc/serialise/codecs/xml_codec.cpp index 548f0a724..858bc451c 100644 --- a/renderdoc/serialise/codecs/xml_codec.cpp +++ b/renderdoc/serialise/codecs/xml_codec.cpp @@ -477,6 +477,7 @@ static RDResult Structured2XML(const rdcstr &filename, const RDCFile &file, uint SDChunk *chunk = chunks[c]; xChunk.append_attribute("id") = chunk->metadata.chunkID; + xChunk.append_attribute("chunkIndex") = c; xChunk.append_attribute("name") = chunk->name.c_str(); xChunk.append_attribute("length") = chunk->metadata.length; if(chunk->metadata.threadID)