From c468dafedc75048cc8f1cdfeed289803c09b22ac Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 26 Oct 2020 16:21:18 +0000 Subject: [PATCH] Don't stringify ResourceIds in structured data * Users should stringify the actual value themselves if so desired. This reduces the number of string allocations in the structured data since ResourceIds are common. --- renderdoc/core/core.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/core/core.cpp b/renderdoc/core/core.cpp index 86b854853..3596a1fdb 100644 --- a/renderdoc/core/core.cpp +++ b/renderdoc/core/core.cpp @@ -133,7 +133,11 @@ rdcstr DoStringise(const PointerVal &el) } } -BASIC_TYPE_SERIALISE_STRINGIFY(ResourceId, (uint64_t &)el, SDBasic::Resource, 8); +template +void DoSerialise(SerialiserType &ser, ResourceId &el) +{ + ser.SerialiseValue(SDBasic::Resource, 8, (uint64_t &)el); +} INSTANTIATE_SERIALISE_TYPE(ResourceId);