summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-profile.cpp
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-06-14 12:56:59 -0400
committerGitHub <noreply@github.com>2024-06-14 09:56:59 -0700
commitfdef653ab5b38ac78d355d2f0148c6d77e784a8c (patch)
tree5319d02e0678b39321868fd93befbfa7062d7726 /source/slang/slang-profile.cpp
parent33e81a03115dad223b244ca689e2abdbf26641f7 (diff)
Improve Direct SPIRV Backend Test Coverage (#4396)
'raytracing' and 'texture-footprint' tests fixed texture-footprint bug changed when we emit raytracing/rayquery extensions with glsl backend (to reduce incorrect extension emitting)
Diffstat (limited to 'source/slang/slang-profile.cpp')
-rw-r--r--source/slang/slang-profile.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/slang/slang-profile.cpp b/source/slang/slang-profile.cpp
index e5ce6fde3..9b7112b1f 100644
--- a/source/slang/slang-profile.cpp
+++ b/source/slang/slang-profile.cpp
@@ -14,6 +14,22 @@ ProfileFamily getProfileFamily(ProfileVersion version)
}
}
+bool isRaytracingStage(Stage inStage)
+{
+ switch (inStage)
+ {
+ case Stage::RayGeneration:
+ case Stage::Miss:
+ case Stage::Intersection:
+ case Stage::ClosestHit:
+ case Stage::Callable:
+ case Stage::AnyHit:
+ return true;
+ default:
+ return false;
+ }
+}
+
const char* getStageName(Stage stage)
{
switch(stage)