summaryrefslogtreecommitdiffstats
path: root/examples/hello-world/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-world/main.cpp')
-rw-r--r--examples/hello-world/main.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp
index fbf67569d..e71a02115 100644
--- a/examples/hello-world/main.cpp
+++ b/examples/hello-world/main.cpp
@@ -127,13 +127,7 @@ int HelloWorldExample::createComputePipelineFromShader()
sessionDesc.targets = &targetDesc;
sessionDesc.targetCount = 1;
-
- std::vector<slang::CompilerOptionEntry> options;
- options.push_back(
- {slang::CompilerOptionName::EmitSpirvDirectly,
- {slang::CompilerOptionValueKind::Int, 1, 0, nullptr, nullptr}});
- sessionDesc.compilerOptionEntries = options.data();
- sessionDesc.compilerOptionEntryCount = options.size();
+ sessionDesc.compilerOptionEntryCount = 0;
ComPtr<slang::ISession> session;
RETURN_ON_FAIL(slangGlobalSession->createSession(sessionDesc, session.writeRef()));