Add slang shader for ray tracing reflection sample

This commit is contained in:
Sascha Willems 2025-04-27 20:37:42 +02:00
parent a4354cdb2e
commit 126231756a
3 changed files with 153 additions and 3 deletions

View file

@ -70,10 +70,10 @@ if args.sample != None:
dir_path = os.path.dirname(os.path.realpath(__file__))
dir_path = dir_path.replace('\\', '/')
for root, dirs, files in os.walk(dir_path):
folder_name = os.path.basename(root)
if (compile_single_sample != "" and folder_name != compile_single_sample):
continue
for file in files:
folder_name = os.path.basename(root)
if (compile_single_sample != "" and folder_name != compile_single_sample):
continue
if file.endswith(".slang"):
input_file = os.path.join(root, file)
# Slang can store multiple shader stages in a single file, we need to split into separate SPIR-V files for the sample framework