diff options
Diffstat (limited to 'source/slang/slang-ir-link.cpp')
| -rw-r--r-- | source/slang/slang-ir-link.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/slang/slang-ir-link.cpp b/source/slang/slang-ir-link.cpp index f80f97aff..f1f6d4cd4 100644 --- a/source/slang/slang-ir-link.cpp +++ b/source/slang/slang-ir-link.cpp @@ -1346,9 +1346,10 @@ struct IRSpecializationState } }; +// TODO(DG): Generalize to multiple entry points LinkedIR linkIR( BackEndCompileRequest* compileRequest, - Int entryPointIndex, + List<Int> entryPointIndices, CodeGenTarget target, TargetProgram* targetProgram) { @@ -1446,7 +1447,11 @@ LinkedIR linkIR( // arguments which might end up affecting the mangled // entry point name. // - auto entryPointMangledName = program->getEntryPointMangledName(entryPointIndex); + // TODO(DG): spot to generalize to multiple entry points + // Note that only stuff referenced by an entry point gets linked here + // Temporary assertion for checkpoint + SLANG_ASSERT(entryPointIndices.getCount() == 1); + auto entryPointMangledName = program->getEntryPointMangledName(entryPointIndices[0]); auto irEntryPoint = specializeIRForEntryPoint(context, entryPointMangledName); // Bindings for global generic parameters are currently represented |
