summaryrefslogtreecommitdiff
path: root/tools/eval-test/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eval-test/main.cpp')
-rw-r--r--tools/eval-test/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/eval-test/main.cpp b/tools/eval-test/main.cpp
index 9fb6f94a3..486de7bd9 100644
--- a/tools/eval-test/main.cpp
+++ b/tools/eval-test/main.cpp
@@ -37,9 +37,13 @@ int main(
SlangSession* session = spCreateSession(nullptr);
SlangCompileRequest* request = spCreateCompileRequest(session);
- spSetCodeGenTarget(
+ spSetCompileFlags(
request,
- SLANG_IR);
+ SLANG_COMPILE_FLAG_USE_IR);
+
+ spSetOutputContainerFormat(
+ request,
+ SLANG_CONTAINER_FORMAT_SLANG_MODULE);
int translationUnitIndex = spAddTranslationUnit(
request,
@@ -69,7 +73,7 @@ int main(
// Extract the bytecode
size_t bytecodeSize = 0;
- void const* bytecode = spGetEntryPointCode(request, entryPointIndex, &bytecodeSize);
+ void const* bytecode = spGetCompileRequestCode(request, &bytecodeSize);
// Now we need to create an execution context to go and run the bytecode we got