shader-slang / slang

Making it easier to work with shaders
MIT License
1.81k stars 161 forks source link

Fixes incorrect profile string in hello-word example #4268

Closed chaoticbob closed 1 month ago

chaoticbob commented 1 month ago

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" which results in valid profile value.