HLSL: Turn on reflection, with basic test file, to catch regressions.

This is not a claim that reflection is working right, only a way to
see it is occurring and catch any regression.
This commit is contained in:
John Kessenich
2016-09-19 23:12:48 -06:00
parent 6b71c400f8
commit 2572b19e94
6 changed files with 255 additions and 3 deletions

View File

@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.1501"
#define GLSLANG_REVISION "Overload400-PrecQual.1502"
#define GLSLANG_DATE "19-Sep-2016"

View File

@@ -75,8 +75,8 @@ void TIntermediate::merge(TInfoSink& infoSink, TIntermediate& unit)
if (source != unit.source)
error(infoSink, "can't link compilation units from different source languages");
if (source == EShSourceHlsl && unit.entryPointName.size() > 0) {
if (entryPointName.size() > 0)
if (source == EShSourceHlsl && unit.getNumEntryPoints() > 0) {
if (getNumEntryPoints() > 0)
error(infoSink, "can't handle multiple entry points per stage");
else
entryPointName = unit.entryPointName;