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:
@@ -850,8 +850,9 @@ TIntermAggregate* HlslParseContext::handleFunctionDefinition(const TSourceLoc& l
|
||||
currentFunctionType = new TType(EbtVoid);
|
||||
functionReturnsValue = false;
|
||||
|
||||
inEntryPoint = (function.getName() == intermediate.getEntryPoint().c_str());
|
||||
inEntryPoint = function.getName().compare(intermediate.getEntryPointName().c_str()) == 0;
|
||||
if (inEntryPoint) {
|
||||
intermediate.setEntryPointMangledName(function.getMangledName().c_str());
|
||||
remapEntryPointIO(function);
|
||||
if (entryPointOutput) {
|
||||
if (shouldFlatten(entryPointOutput->getType()))
|
||||
|
||||
Reference in New Issue
Block a user