diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-unit-test/unit-test-separate-debug.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/slang-unit-test/unit-test-separate-debug.cpp b/tools/slang-unit-test/unit-test-separate-debug.cpp index 42ada97a5..6ce849b0d 100644 --- a/tools/slang-unit-test/unit-test-separate-debug.cpp +++ b/tools/slang-unit-test/unit-test-separate-debug.cpp @@ -106,8 +106,13 @@ SLANG_UNIT_TEST(separateDebug) ComPtr<slang::IMetadata> metadata; const char* debugBuildIdentifier = nullptr; + // IComponentType2 is a separate interface from IComponentType, so we need + // to query for it, and then use it to get the results. ComPtr<slang::ICompileResult> compileResult; - auto result = linkedProgram->getEntryPointCompileResult( + ComPtr<slang::IComponentType2> linkedProgram2; + SLANG_CHECK( + linkedProgram->queryInterface(SLANG_IID_PPV_ARGS(linkedProgram2.writeRef())) == SLANG_OK); + auto result = linkedProgram2->getEntryPointCompileResult( 0, 0, compileResult.writeRef(), |
