mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
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:
parent
1e01656def
commit
9d6be9530b
@ -496,6 +496,12 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
|
|||||||
return false;
|
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)
|
if (optind < argc)
|
||||||
options->filename = argv[argc - 1];
|
options->filename = argv[argc - 1];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user