mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-27 08:56:44 +00:00
Fix declarations of pointers to arrays
This commit is contained in:
@@ -209,7 +209,9 @@ struct SPVTypeData
|
||||
ret += decorations[d].Str() + " ";
|
||||
}
|
||||
|
||||
if(type == eArray)
|
||||
if(type == ePointer && baseType->type == eArray)
|
||||
ret += StringFormat::Fmt("%s* %s[%u]", baseType->baseType->GetName().c_str(), varName.c_str(), baseType->arraySize);
|
||||
else if(type == eArray)
|
||||
ret += StringFormat::Fmt("%s %s[%u]", baseType->GetName().c_str(), varName.c_str(), arraySize);
|
||||
else
|
||||
ret += StringFormat::Fmt("%s %s", GetName().c_str(), varName.c_str());
|
||||
|
||||
Reference in New Issue
Block a user