mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 22:25:55 +00:00
Rename 'name' member of ActionDescription to 'customName'
* This is a deliberate break of compatibility since the field is now often empty, for non-markers. This means code will get a more explicit error when the name is being referenced, so it can be updated to fetch the name it needs as needed.
This commit is contained in:
@@ -550,7 +550,7 @@ void DoSerialise(SerialiserType &ser, ActionDescription &el)
|
||||
SERIALISE_MEMBER(eventId);
|
||||
SERIALISE_MEMBER(actionId);
|
||||
|
||||
SERIALISE_MEMBER(name);
|
||||
SERIALISE_MEMBER(customName);
|
||||
|
||||
SERIALISE_MEMBER(flags);
|
||||
|
||||
|
||||
@@ -368,16 +368,16 @@ void ReplayController::AddFakeMarkers()
|
||||
const char *targets = actions[end].depthOut == ResourceId() ? "Targets" : "Targets + Depth";
|
||||
|
||||
if(copyOnly)
|
||||
mark.name = StringFormat::Fmt("Copy/Clear Pass #%d", copypassID++);
|
||||
mark.customName = StringFormat::Fmt("Copy/Clear Pass #%d", copypassID++);
|
||||
else if(actions[refaction].flags & ActionFlags::Dispatch)
|
||||
mark.name = StringFormat::Fmt("Compute Pass #%d", computepassID++);
|
||||
mark.customName = StringFormat::Fmt("Compute Pass #%d", computepassID++);
|
||||
else if(maxOutCount == 0)
|
||||
mark.name = StringFormat::Fmt("Depth-only Pass #%d", depthpassID++);
|
||||
mark.customName = StringFormat::Fmt("Depth-only Pass #%d", depthpassID++);
|
||||
else if(minOutCount == maxOutCount)
|
||||
mark.name = StringFormat::Fmt("Colour Pass #%d (%d %s)", passID++, minOutCount, targets);
|
||||
mark.customName = StringFormat::Fmt("Colour Pass #%d (%d %s)", passID++, minOutCount, targets);
|
||||
else
|
||||
mark.name = StringFormat::Fmt("Colour Pass #%d (%d-%d %s)", passID++, minOutCount,
|
||||
maxOutCount, targets);
|
||||
mark.customName = StringFormat::Fmt("Colour Pass #%d (%d-%d %s)", passID++, minOutCount,
|
||||
maxOutCount, targets);
|
||||
|
||||
mark.children.resize(end - start + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user