diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-10 12:23:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-10 12:23:07 -0700 |
| commit | e4d7def727f75cee3f8fdfe6f286da2b8114b329 (patch) | |
| tree | 197686d1c1736e3fd141b4b62bff5dc193a897c0 /source/slang/slang-ir-link.cpp | |
| parent | 5569b4850dabbb7dbcb72278bb2918c281e0d475 (diff) | |
Fix hit object emit for HLSL + FuncType specialization bug fix. (#2976)
* Fix hit object emit for HLSL.
* Fix a bug involving specialization of functon type.
* Add a test case.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-link.cpp')
| -rw-r--r-- | source/slang/slang-ir-link.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-ir-link.cpp b/source/slang/slang-ir-link.cpp index 14e79560e..f57919e44 100644 --- a/source/slang/slang-ir-link.cpp +++ b/source/slang/slang-ir-link.cpp @@ -1198,10 +1198,11 @@ IRInst* cloneInst( IRInst* clonedArg = cloneValue(context, originalArg); newArgs[aa] = clonedArg; } + auto funcType = cloneType(context, originalInst->getFullType()); context->builder = oldBuilder; IRInst* clonedInst = builder->createIntrinsicInst( - cloneType(context, originalInst->getFullType()), + funcType, originalInst->getOp(), argCount, newArgs.getArrayView().getBuffer()); builder->addInst(clonedInst); |
