summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 57f0e8917..2d3e9ee77 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -154,7 +154,15 @@ Profile getEffectiveProfile(EntryPointRequest* entryPoint, TargetRequest* target
case Stage::AnyHit:
case Stage::Miss:
case Stage::Callable:
- stageMinVersion = ProfileVersion::DX_6_1;
+ stageMinVersion = ProfileVersion::DX_6_3;
+
+ // When compiling for DXR, we don't actually have distinct
+ // profiles for all of the DXR stages (e.g., there is no
+ // `raygeneration_6_3` profile), so we will clear out
+ // the stage part of the effective profile to avoid
+ // using a stage that isn't allowed downstream.
+ //
+ effectiveProfile.setStage(Stage::Unknown);
break;
// TODO: Add equivalent logic for geometry, tessellation, and compute stages.