From 8b405be480664849e4717b5e757755a368e21bd0 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Thu, 24 Apr 2025 20:10:07 +0200 Subject: [PATCH] Command line argument to explicitly compile slang shaders for a single sample --- shaders/slang/compileshaders.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shaders/slang/compileshaders.py b/shaders/slang/compileshaders.py index 0008835a..2a8feb22 100644 --- a/shaders/slang/compileshaders.py +++ b/shaders/slang/compileshaders.py @@ -9,6 +9,7 @@ import sys parser = argparse.ArgumentParser(description='Compile all slang shaders') parser.add_argument('--slangc', type=str, help='path to slangc executable') +parser.add_argument('--sample', type=str, help='can be used to compile shaders for a single sample only') args = parser.parse_args() def findCompiler(): @@ -54,7 +55,9 @@ compiler_path = findCompiler() print("Found slang compiler at %s", compiler_path) -compile_single_sample = "computeparticles" +compile_single_sample = "" +if args.sample != None: + compile_single_sample = args.sample dir_path = os.path.dirname(os.path.realpath(__file__)) dir_path = dir_path.replace('\\', '/')