summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-cuda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-cuda.cpp')
-rw-r--r--source/slang/slang-emit-cuda.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp
index e27fd25aa..a5b90740d 100644
--- a/source/slang/slang-emit-cuda.cpp
+++ b/source/slang/slang-emit-cuda.cpp
@@ -214,6 +214,7 @@ SlangResult CUDASourceEmitter::calcTypeName(IRType* type, CodeGenTarget target,
out << "TensorView";
return SLANG_OK;
}
+ case kIROp_RaytracingAccelerationStructureType:
case kIROp_HitObjectType:
{
out << "OptixTraversableHandle";
@@ -254,22 +255,6 @@ 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);
}