From 7fa8c35383ed4437cb9acb1670ca6db749173d86 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 15 May 2025 04:29:12 +0000 Subject: Remove compiler option no longer needed from the example (#7084) --- examples/hello-world/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 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 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 session; RETURN_ON_FAIL(slangGlobalSession->createSession(sessionDesc, session.writeRef())); -- cgit v1.2.3