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
|
|
@ -697,7 +697,7 @@ bool ProcessDeferred(
|
|||
parseContext = new HlslParseContext(symbolTable, intermediate, false, version, profile, spvVersion,
|
||||
compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
|
||||
} else {
|
||||
intermediate.setEntryPoint("main");
|
||||
intermediate.setEntryPointName("main");
|
||||
parseContext = new TParseContext(symbolTable, intermediate, false, version, profile, spvVersion,
|
||||
compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
|
||||
}
|
||||
|
|
@ -1485,7 +1485,7 @@ void TShader::setStringsWithLengthsAndNames(
|
|||
|
||||
void TShader::setEntryPoint(const char* entryPoint)
|
||||
{
|
||||
intermediate->setEntryPoint(entryPoint);
|
||||
intermediate->setEntryPointName(entryPoint);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue