Skip to content

Commit e511423

Browse files
committed
Add .rint compilation support
1 parent 8e50a56 commit e511423

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

shaders/glsl/compileshaders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def isExe(path):
3131

3232
sys.exit("Could not find glslangvalidator executable on PATH, and was not specified with --glslang")
3333

34-
file_extensions = tuple([".vert", ".frag", ".comp", ".geom", ".tesc", ".tese", ".rgen", ".rchit", ".rmiss", ".mesh", ".task"])
34+
file_extensions = tuple([".vert", ".frag", ".comp", ".geom", ".tesc", ".tese", ".rgen", ".rchit", ".rint", ".rmiss", ".mesh", ".task"])
3535

3636
compile_single_sample = ""
3737
if args.sample != None:
@@ -58,7 +58,7 @@ def isExe(path):
5858
add_params = "-g"
5959

6060
# Ray tracing shaders require a different target environment
61-
if file.endswith(".rgen") or file.endswith(".rchit") or file.endswith(".rmiss"):
61+
if file.endswith(".rgen") or file.endswith(".rchit") or file.endswith(".rint") or file.endswith(".rmiss"):
6262
add_params = add_params + " --target-env vulkan1.2"
6363
# Same goes for samples that use ray queries
6464
if root.endswith("rayquery") and file.endswith(".frag"):

shaders/hlsl/compileshaders.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def isExe(path):
3737
print("ERROR: No directory found with name %s" % compile_single_sample)
3838
exit(-1)
3939

40-
file_extensions = tuple([".vert", ".frag", ".comp", ".geom", ".tesc", ".tese", ".rgen", ".rchit", ".rmiss", ".mesh", ".task"])
40+
file_extensions = tuple([".vert", ".frag", ".comp", ".geom", ".tesc", ".tese", ".rgen", ".rchit", ".rint", ".rmiss", ".mesh", ".task"])
4141

4242
dxc_path = findDXC()
4343
dir_path = os.path.dirname(os.path.realpath(__file__))
@@ -69,6 +69,7 @@ def isExe(path):
6969
profile = 'ds_6_1'
7070
elif(hlsl_file.find('.rgen') != -1 or
7171
hlsl_file.find('.rchit') != -1 or
72+
hlsl_file.find('.rint') != -1 or
7273
hlsl_file.find('.rmiss') != -1):
7374
target='-fspv-target-env=vulkan1.2'
7475
profile = 'lib_6_3'

0 commit comments

Comments
 (0)