summaryrefslogtreecommitdiff
path: root/source/slang-capture-replay/slang-composite-component-type.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-06-12 09:45:50 -0700
committerGitHub <noreply@github.com>2024-06-12 09:45:50 -0700
commitccc26c2d22d471ae649bf16f37ed1cd6cfbddd1b (patch)
treef1b84f6c30d2f8aa5014587ef1b7995ae51996e4 /source/slang-capture-replay/slang-composite-component-type.cpp
parent318adcc27b8d89ec1d47c445a93239dd81be0b31 (diff)
Extend the COM-based API to support whole program compilation. (#4355)
Diffstat (limited to 'source/slang-capture-replay/slang-composite-component-type.cpp')
-rw-r--r--source/slang-capture-replay/slang-composite-component-type.cpp10
1 files changed, 10 insertions, 0 deletions
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,