summaryrefslogtreecommitdiff
path: root/source/slang/slang-intrinsic-expand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-intrinsic-expand.cpp')
-rw-r--r--source/slang/slang-intrinsic-expand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-intrinsic-expand.cpp b/source/slang/slang-intrinsic-expand.cpp
index 56ff2a108..28023e9e2 100644
--- a/source/slang/slang-intrinsic-expand.cpp
+++ b/source/slang/slang-intrinsic-expand.cpp
@@ -446,7 +446,7 @@ const char* IntrinsicExpandContext::_emitSpecial(const char* cursor)
// there is a format conversion required between the type associated by the resource and
// the backing ImageFormat. Currently this is only implemented on CUDA, where there are
// specialized versions of the RWTexture writes that will do a format conversion.
- if (m_emitter->getTarget() == CodeGenTarget::CUDASource)
+ if (isCUDATarget(m_emitter->getTargetReq()))
{
IRInst* resourceInst = m_callInst->getArg(0);