HLSL: Report an error if SPIR-V for Vulkan wasn't selected.
This commit is contained in:
parent
a21187a7f9
commit
d4032293ce
3 changed files with 6 additions and 4 deletions
|
|
@ -695,9 +695,8 @@ bool ProcessDeferred(
|
|||
TParseContextBase* parseContext;
|
||||
if (source == EShSourceHlsl) {
|
||||
parseContext = new HlslParseContext(symbolTable, intermediate, false, version, profile, spvVersion,
|
||||
compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
|
||||
}
|
||||
else {
|
||||
compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
|
||||
} else {
|
||||
intermediate.setEntryPoint("main");
|
||||
parseContext = new TParseContext(symbolTable, intermediate, false, version, profile, spvVersion,
|
||||
compiler->getLanguage(), compiler->infoSink, forwardCompatible, messages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue