Generalize "main" to a settable entry point name.
This commit is contained in:
parent
6cc7674b6d
commit
4d65ee31a6
8 changed files with 38 additions and 8 deletions
|
|
@ -588,6 +588,7 @@ bool ProcessDeferred(
|
|||
// Now we can process the full shader under proper symbols and rules.
|
||||
//
|
||||
|
||||
intermediate.setEntryPoint("main");
|
||||
TParseContext parseContext(symbolTable, intermediate, false, version, profile, spv, vulkan, compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
|
||||
glslang::TScanContext scanContext(parseContext);
|
||||
TPpContext ppContext(parseContext, includer);
|
||||
|
|
@ -1355,6 +1356,11 @@ void TShader::setStringsWithLengthsAndNames(
|
|||
stringNames = names;
|
||||
}
|
||||
|
||||
void TShader::setEntryPoint(const char* entryPoint)
|
||||
{
|
||||
intermediate->setEntryPoint(entryPoint);
|
||||
}
|
||||
|
||||
//
|
||||
// Turn the shader strings into a parse tree in the TIntermediate.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue