summaryrefslogtreecommitdiff
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.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp
index bd891928c..633b065c7 100644
--- a/source/slang/slang-emit-cuda.cpp
+++ b/source/slang/slang-emit-cuda.cpp
@@ -181,11 +181,7 @@ SlangResult CUDASourceEmitter::calcTypeName(IRType* type, CodeGenTarget target,
if (auto texType = as<IRTextureTypeBase>(type))
{
- // We don't support TextureSampler, so ignore that
- if (texType->getOp() != kIROp_TextureSamplerType)
- {
- return _calcCUDATextureTypeName(texType, out);
- }
+ return _calcCUDATextureTypeName(texType, out);
}
switch (type->getOp())