summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-glsl.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-emit-glsl.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-emit-glsl.cpp')
-rw-r--r--source/slang/slang-emit-glsl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp
index c788d9cbf..2a7f22905 100644
--- a/source/slang/slang-emit-glsl.cpp
+++ b/source/slang/slang-emit-glsl.cpp
@@ -2591,7 +2591,10 @@ void GLSLSourceEmitter::emitSimpleTypeImpl(IRType* type)
{
case kIROp_RaytracingAccelerationStructureType:
{
- _requireRayQuery();
+ if (!isRaytracingStage(m_entryPointStage))
+ _requireRayQuery();
+ else
+ _requireRayTracing();
m_writer->emit("accelerationStructureEXT");
break;
}