[PATCH vkd3d 5/6] vkd3d-compiler: Require a profile specification when compiling HLSL sources.
Matteo Bruni
mbruni at codeweavers.com
Tue Jan 26 13:26:36 CST 2021
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
programs/vkd3d-compiler/main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/programs/vkd3d-compiler/main.c b/programs/vkd3d-compiler/main.c
index c9bc4b8..0928568 100644
--- a/programs/vkd3d-compiler/main.c
+++ b/programs/vkd3d-compiler/main.c
@@ -502,6 +502,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];
--
2.26.2
More information about the wine-devel
mailing list