summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-cuda.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp
index b0c2cc02b..dbe089723 100644
--- a/source/slang/slang-emit-cuda.cpp
+++ b/source/slang/slang-emit-cuda.cpp
@@ -314,6 +314,20 @@ SlangResult CUDASourceEmitter::calcTypeName(IRType* type, CodeGenTarget target,
}
}
+ if (auto untypedBufferType = as<IRUntypedBufferResourceType>(type)) {
+ switch (untypedBufferType->getOp())
+ {
+ case kIROp_RaytracingAccelerationStructureType:
+ {
+ m_writer->emit("OptixTraversableHandle");
+ return SLANG_OK;
+ break;
+ }
+
+ default: break;
+ }
+ }
+
return Super::calcTypeName(type, target, out);
}