Add an option to report array variables with trailing [0] suffix
* This is as expected by ARB_program_interface_query
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp
index fd69810..c9b1ede 100644
--- a/StandAlone/StandAlone.cpp
+++ b/StandAlone/StandAlone.cpp
@@ -526,6 +526,8 @@
Options |= EOptionRelaxedErrors;
} else if (lowerword == "reflect-strict-array-suffix") {
ReflectOptions |= EShReflectionStrictArraySuffix;
+ } else if (lowerword == "reflect-basic-array-suffix") {
+ ReflectOptions |= EShReflectionBasicArraySuffix;
} else if (lowerword == "resource-set-bindings" || // synonyms
lowerword == "resource-set-binding" ||
lowerword == "rsb") {
@@ -1522,6 +1524,7 @@
" --keep-uncalled | --ku don't eliminate uncalled functions\n"
" --no-storage-format | --nsf use Unknown image format\n"
" --reflect-strict-array-suffix use strict array suffix rules when reflecting\n"
+ " --reflect-basic-array-suffix arrays of basic types will have trailing [0]\n"
" --resource-set-binding [stage] name set binding\n"
" set descriptor set and binding for\n"
" individual resources\n"