Add an option to report array variables with trailing [0] suffix

* This is as expected by ARB_program_interface_query
This commit is contained in:
baldurk 2019-01-29 15:49:00 +00:00
parent 15c37f79a9
commit edf8212ab8
5 changed files with 15 additions and 7 deletions

View file

@ -341,6 +341,10 @@ public:
return;
}
if ((reflection.options & EShReflectionBasicArraySuffix) && terminalType->isArray()) {
name.append(TString("[0]"));
}
// Finally, add a full string to the reflection database, and update the array size if necessary.
// If the dereferenced entity to record is an array, compute the size and update the maximum size.