summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-autodiff.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-21 14:00:48 -0700
committerGitHub <noreply@github.com>2023-09-21 14:00:48 -0700
commit5b2eb06816521cc0fcfe03258452560bd200002d (patch)
treedc06cc626ff0059dded3f4245f9309b3071ae94c /source/slang/slang-ir-autodiff.cpp
parentaf8ce68e9fd7b6255b6e4e9e9524a285497116dc (diff)
Various slangpy fixes. (#3227)
* Make dynamic cast transparent through `IRAttributedType`. * Add [CUDAXxx] variant of attributes. * Support marshaling of vector types. * Wrap cuda kernels in `extern "C"` block. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-autodiff.cpp')
-rw-r--r--source/slang/slang-ir-autodiff.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-autodiff.cpp b/source/slang/slang-ir-autodiff.cpp
index 5b90e2711..a6437e3e4 100644
--- a/source/slang/slang-ir-autodiff.cpp
+++ b/source/slang/slang-ir-autodiff.cpp
@@ -324,7 +324,7 @@ IRInst* DifferentialPairTypeBuilder::lowerDiffPairType(
result = originalPairType;
return result;
}
- if (as<IRParam>(primalType))
+ if (as<IRParam, IRDynamicCastBehavior::NoUnwrap>(primalType))
{
result = nullptr;
return result;