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:
parent
15c37f79a9
commit
edf8212ab8
5 changed files with 15 additions and 7 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue