summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-lower-generic-function.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-05-10 19:42:48 -0700
committerGitHub <noreply@github.com>2022-05-10 19:42:48 -0700
commit765061a77bcf4fe6300721263cc9e0f25595488d (patch)
tree5fe52269a46d8db85a869784f8637022f154c20f /source/slang/slang-ir-lower-generic-function.cpp
parentdc541cc10783de541d8341b5fccee4c6019b5c6e (diff)
Initial support for COM interface in host code. (#2230)
Co-authored-by: Yong He <yhe@nvidia.com> Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-ir-lower-generic-function.cpp')
-rw-r--r--source/slang/slang-ir-lower-generic-function.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-ir-lower-generic-function.cpp b/source/slang/slang-ir-lower-generic-function.cpp
index 0bfc62fdb..600f21b20 100644
--- a/source/slang/slang-ir-lower-generic-function.cpp
+++ b/source/slang/slang-ir-lower-generic-function.cpp
@@ -152,6 +152,10 @@ namespace Slang
// Do not lower intrinsic interfaces.
if (isBuiltin(interfaceType))
return interfaceType;
+ // Do not lower COM interfaces.
+ if (interfaceType->findDecoration<IRComInterfaceDecoration>())
+ return interfaceType;
+
List<IRInterfaceRequirementEntry*> newEntries;
IRBuilder builder(sharedContext->sharedBuilderStorage);