Reflect pipeline outputs as well as inputs, optionally from other stages
* We add an option to reflect inputs from other stages than vertex, if only a
later subset of the stages is linked into the program.
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp
index c9b1ede..7588320 100644
--- a/StandAlone/StandAlone.cpp
+++ b/StandAlone/StandAlone.cpp
@@ -528,6 +528,8 @@
ReflectOptions |= EShReflectionStrictArraySuffix;
} else if (lowerword == "reflect-basic-array-suffix") {
ReflectOptions |= EShReflectionBasicArraySuffix;
+ } else if (lowerword == "reflect-intermediate-io") {
+ ReflectOptions |= EShReflectionIntermediateIO;
} else if (lowerword == "resource-set-bindings" || // synonyms
lowerword == "resource-set-binding" ||
lowerword == "rsb") {
@@ -1525,6 +1527,8 @@
" --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"
+ " --reflect-intermediate-io reflection includes inputs/outputs of linked shaders\n"
+ " rather than just vertex/fragment\n"
" --resource-set-binding [stage] name set binding\n"
" set descriptor set and binding for\n"
" individual resources\n"