summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-05-15 04:29:12 +0000
committerGitHub <noreply@github.com>2025-05-15 04:29:12 +0000
commit7fa8c35383ed4437cb9acb1670ca6db749173d86 (patch)
treec252824179535dd79f12f84ea708ce1f083e9012 /examples
parent2580bb02f7a079ab1c0106b5960a21ed1627bca0 (diff)
Remove compiler option no longer needed from the example (#7084)
Diffstat (limited to 'examples')
-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()));