Add option to unwrap I/O block aggregates in reflection
* We follow similar rules to uniform block exploding.
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp
index 740ec7b..bb37a84 100644
--- a/StandAlone/StandAlone.cpp
+++ b/StandAlone/StandAlone.cpp
@@ -534,6 +534,8 @@
ReflectOptions |= EShReflectionSeparateBuffers;
} else if (lowerword == "reflect-all-block-variables") {
ReflectOptions |= EShReflectionAllBlockVariables;
+ } else if (lowerword == "reflect-unwrap-io-blocks") {
+ ReflectOptions |= EShReflectionUnwrapIOBlocks;
} else if (lowerword == "resource-set-bindings" || // synonyms
lowerword == "resource-set-binding" ||
lowerword == "rsb") {
@@ -1538,6 +1540,8 @@
" separately to uniforms\n"
" --reflect-all-block-variables reflect all variables in blocks, whether\n"
" inactive or active\n"
+ " --reflect-unwrap-io-blocks unwrap input/output blocks the same as\n"
+ " uniform blocks\n"
" --resource-set-binding [stage] name set binding\n"
" set descriptor set and binding for\n"
" individual resources\n"