mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-12 09:41:03 +00:00
Patch another form of handle string in vulkan debug messages
This commit is contained in:
@@ -3433,6 +3433,8 @@ void WrappedVulkan::ProcessDebugMessage(DebugMessage &msg)
|
||||
}
|
||||
}
|
||||
|
||||
bool do_replace = false;
|
||||
|
||||
// we now expect a [NAME]. Look for matched set of []s
|
||||
if(desc[end] == '[')
|
||||
{
|
||||
@@ -3449,6 +3451,16 @@ void WrappedVulkan::ProcessDebugMessage(DebugMessage &msg)
|
||||
end++;
|
||||
}
|
||||
|
||||
do_replace = true;
|
||||
}
|
||||
// if we didn't see a trailing [], look for a preceeding handle =
|
||||
else if(offs >= 9 && desc.substr(offs - 9, 9) == "handle = ")
|
||||
{
|
||||
do_replace = true;
|
||||
}
|
||||
|
||||
if(do_replace)
|
||||
{
|
||||
// unique objects layer implies this is a unique search so we don't have to worry
|
||||
// about type aliases
|
||||
ResourceId id = GetResourceManager()->GetFirstIDForHandle(val);
|
||||
|
||||
Reference in New Issue
Block a user