diff options
| author | Hai Nguyen <379079+chaoticbob@users.noreply.github.com> | 2024-06-04 19:21:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-04 16:21:18 -0700 |
| commit | 1141b8243c4ff00c59e927b0c33dbffaea29db4c (patch) | |
| tree | 66f725b293f2e331208e1e8d7d3ee234cf1bcc5e /examples/hello-world/main.cpp | |
| parent | 9b6b31be5b38c588bde28d5f215d78cfc62620da (diff) | |
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".
Diffstat (limited to 'examples/hello-world/main.cpp')
| -rw-r--r-- | examples/hello-world/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
