HLSL: Report an error if SPIR-V for Vulkan wasn't selected.

This commit is contained in:
John Kessenich
2016-09-09 11:43:11 -06:00
parent a21187a7f9
commit d4032293ce
3 changed files with 6 additions and 4 deletions

View File

@@ -82,6 +82,9 @@ HlslParseContext::HlslParseContext(TSymbolTable& symbolTable, TIntermediate& int
if (language == EShLangGeometry)
globalOutputDefaults.layoutStream = 0;
if (spvVersion.spv == 0 || spvVersion.vulkan == 0)
infoSink.info << "ERROR: HLSL currently only supported when requesting SPIR-V for Vulkan.\n";
}
HlslParseContext::~HlslParseContext()