From fdef653ab5b38ac78d355d2f0148c6d77e784a8c Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:56:59 -0400 Subject: 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) --- source/slang/slang-profile.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/slang/slang-profile.cpp') 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) -- cgit v1.2.3