From 2593d707943e7c3c8418c77dea3da38a73d010c3 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Wed, 19 Mar 2025 21:36:06 +0100 Subject: [PATCH] Use SPIR-V profile --- shaders/slang/compileshaders.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shaders/slang/compileshaders.py b/shaders/slang/compileshaders.py index 303b40bf..2f5e2e83 100644 --- a/shaders/slang/compileshaders.py +++ b/shaders/slang/compileshaders.py @@ -29,8 +29,6 @@ def findCompiler(): sys.exit("Could not find slangc executable on PATH, and was not specified with --slangc") -file_extensions = tuple([".vert", ".frag", ".comp", ".geom", ".tesc", ".tese", ".rgen", ".rchit", ".rmiss", ".mesh", ".task"]) - compiler_path = findCompiler() print("Found slang compiler at %s", compiler_path) @@ -43,6 +41,6 @@ for root, dirs, files in os.walk(dir_path): input_file = os.path.join(root, file) output_file = input_file + ".spv" output_file = output_file.replace(".slang", "") - res = subprocess.call("%s %s -profile glsl_460 -target spirv -o %s -entry %s" % (compiler_path, input_file, output_file, "main"), shell=True) + res = subprocess.call("%s %s -profile spirv_1_4 -target spirv -o %s -entry %s" % (compiler_path, input_file, output_file, "main"), shell=True) if res != 0: sys.exit(res) \ No newline at end of file