From 1141b8243c4ff00c59e927b0c33dbffaea29db4c Mon Sep 17 00:00:00 2001 From: Hai Nguyen <379079+chaoticbob@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:21:18 -0400 Subject: Fixes incorrect profile string (#4268) This CL fixes a typo in the profile string for the hello-world example. Currently "glsl440" is passed into findProfile() resulting in a return value of SLANG_UNKNOWN_PROFILE since format of the profile name is incorrect. The correct profile name is glsl_440, therefore the string passed into findProfile() should be "glsl_440". --- examples/hello-world/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp index 95c3daa72..58481c12c 100644 --- a/examples/hello-world/main.cpp +++ b/examples/hello-world/main.cpp @@ -114,7 +114,7 @@ int HelloWorldExample::createComputePipelineFromShader() slang::SessionDesc sessionDesc = {}; slang::TargetDesc targetDesc = {}; targetDesc.format = SLANG_SPIRV; - targetDesc.profile = slangGlobalSession->findProfile("glsl440"); + targetDesc.profile = slangGlobalSession->findProfile("glsl_440"); targetDesc.flags = SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY; sessionDesc.targets = &targetDesc; -- cgit v1.2.3