mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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.
This commit is contained in:
@@ -133,7 +133,11 @@ rdcstr DoStringise(const PointerVal &el)
|
||||
}
|
||||
}
|
||||
|
||||
BASIC_TYPE_SERIALISE_STRINGIFY(ResourceId, (uint64_t &)el, SDBasic::Resource, 8);
|
||||
template <class SerialiserType>
|
||||
void DoSerialise(SerialiserType &ser, ResourceId &el)
|
||||
{
|
||||
ser.SerialiseValue(SDBasic::Resource, 8, (uint64_t &)el);
|
||||
}
|
||||
|
||||
INSTANTIATE_SERIALISE_TYPE(ResourceId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user