diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-05-15 04:29:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-15 04:29:12 +0000 |
| commit | 7fa8c35383ed4437cb9acb1670ca6db749173d86 (patch) | |
| tree | c252824179535dd79f12f84ea708ce1f083e9012 /examples/hello-world/main.cpp | |
| parent | 2580bb02f7a079ab1c0106b5960a21ed1627bca0 (diff) | |
Remove compiler option no longer needed from the example (#7084)
Diffstat (limited to 'examples/hello-world/main.cpp')
| -rw-r--r-- | examples/hello-world/main.cpp | 8 |
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())); |
