From af70651a4843b16dd24e14b5cedffe399ebeb862 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 20 Aug 2022 01:03:06 -0700 Subject: Call `gfx` in slang program. (#2370) --- source/slang/slang-emit-cpp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-emit-cpp.cpp') diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index 3cfe4d8d4..345b6548a 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -1775,7 +1775,7 @@ void CPPSourceEmitter::emitComInterface(IRInterfaceType* interfaceType) for (UInt i = 0; i < interfaceType->getOperandCount(); i++) { auto entry = as(interfaceType->getOperand(i)); - if (auto witnessTableType = as(entry->getRequirementVal())) + if (auto witnessTableType = as(entry->getRequirementVal())) { if (isFirst) { @@ -2931,6 +2931,7 @@ void CPPSourceEmitter::_emitForwardDeclarations(const List& actions) { case kIROp_Func: case kIROp_StructType: + case kIROp_InterfaceType: emitForwardDeclaration(action.inst); break; default: -- cgit v1.2.3