HLSL: Report an error if SPIR-V for Vulkan wasn't selected.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user