vkd3d-compiler: Require a profile specification when compiling HLSL sources.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2021-01-26 20:26:36 +01:00 committed by Alexandre Julliard
parent 1e01656def
commit 9d6be9530b

View File

@ -496,6 +496,12 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
return false;
}
if (!options->preprocess_only && options->source_type == VKD3D_SHADER_SOURCE_HLSL && !options->profile)
{
fprintf(stderr, "You need to specify a profile when compiling from HLSL source.\n");
return false;
}
if (optind < argc)
options->filename = argv[argc - 1];