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

Alexandre Julliard julliard at winehq.org
Wed Jan 27 15:34:55 CST 2021


Module: vkd3d
Branch: master
Commit: 9d6be9530b95f7774657915b5c46dc390a736362
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=9d6be9530b95f7774657915b5c46dc390a736362

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Jan 26 20:26:36 2021 +0100

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

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 f1e597a..94cce20 100644
--- a/programs/vkd3d-compiler/main.c
+++ b/programs/vkd3d-compiler/main.c
@@ -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];
 




More information about the wine-cvs mailing list