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:
parent
6b71c400f8
commit
2572b19e94
6 changed files with 255 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue