From ccc26c2d22d471ae649bf16f37ed1cd6cfbddd1b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 12 Jun 2024 09:45:50 -0700 Subject: Extend the COM-based API to support whole program compilation. (#4355) --- source/slang-capture-replay/slang-composite-component-type.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/slang-capture-replay/slang-composite-component-type.cpp') diff --git a/source/slang-capture-replay/slang-composite-component-type.cpp b/source/slang-capture-replay/slang-composite-component-type.cpp index 09fcec357..f18f4b9cb 100644 --- a/source/slang-capture-replay/slang-composite-component-type.cpp +++ b/source/slang-capture-replay/slang-composite-component-type.cpp @@ -58,6 +58,16 @@ namespace SlangCapture return res; } + SLANG_NO_THROW SlangResult CompositeComponentTypeCapture::getTargetCode( + SlangInt targetIndex, + slang::IBlob** outCode, + slang::IBlob** outDiagnostics) + { + slangCaptureLog(LogLevel::Verbose, "%s\n", __PRETTY_FUNCTION__); + SlangResult res = m_actualCompositeComponentType->getTargetCode(targetIndex, outCode, outDiagnostics); + return res; + } + SLANG_NO_THROW SlangResult CompositeComponentTypeCapture::getResultAsFileSystem( SlangInt entryPointIndex, SlangInt targetIndex, -- cgit v1.2.3