Track separate entry-point names and mangled names...
... and use each in the correct way at consumption sites. This completes issue #513.
This commit is contained in:
parent
632f575ecc
commit
eee9d536bc
8 changed files with 32 additions and 25 deletions
|
|
@ -75,11 +75,11 @@ 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.entryPoint.size() > 0) {
|
||||
if (entryPoint.size() > 0)
|
||||
if (source == EShSourceHlsl && unit.entryPointName.size() > 0) {
|
||||
if (entryPointName.size() > 0)
|
||||
error(infoSink, "can't handle multiple entry points per stage");
|
||||
else
|
||||
entryPoint = unit.entryPoint;
|
||||
entryPointName = unit.entryPointName;
|
||||
}
|
||||
numEntryPoints += unit.numEntryPoints;
|
||||
numErrors += unit.numErrors;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue