summaryrefslogtreecommitdiffstats
path: root/examples/cpu-hello-world/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cpu-hello-world/main.cpp')
-rw-r--r--examples/cpu-hello-world/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpu-hello-world/main.cpp b/examples/cpu-hello-world/main.cpp
index cf8c57285..460b4698b 100644
--- a/examples/cpu-hello-world/main.cpp
+++ b/examples/cpu-hello-world/main.cpp
@@ -83,7 +83,7 @@ static SlangResult _innerMain(int argc, char** argv)
// We would like to request a CPU code that can be executed directly on the host -
// which is the 'SLANG_HOST_CALLABLE' target.
// If we wanted a just a shared library/dll, we could have used SLANG_SHARED_LIBRARY.
- int targetIndex = spAddCodeGenTarget(slangRequest, SLANG_HOST_CALLABLE);
+ int targetIndex = spAddCodeGenTarget(slangRequest, SLANG_SHADER_HOST_CALLABLE);
// Set the target flag to indicate that we want to compile all the entrypoints in the
// slang shader file into a library.