Throw an error if the shader specifies isoline tessellation.

This commit is contained in:
Chip Davis 2019-02-11 17:21:36 -06:00
parent 0bb6bbda22
commit 83b7e66218

View File

@ -4950,6 +4950,8 @@ string CompilerMSL::func_type_decl(SPIRType &type)
case ExecutionModelTessellationControl:
if (!msl_options.supports_msl_version(1, 2))
SPIRV_CROSS_THROW("Tessellation requires Metal 1.2.");
if (execution.flags.get(ExecutionModeIsolines))
SPIRV_CROSS_THROW("Metal does not support isoline tessellation.");
/* fallthrough */
case ExecutionModelGLCompute:
case ExecutionModelKernel: