You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the recursive function call is supported only for CPU targets.
Slang-playground is pretty new and it may not be able to handle error message well yet.
When you compile the given shader with slangc.exe, you can see the error message,
test.slang(7): error 55201: recursion detected in call to 'r', but the current code generation target does not allow recursion.
r();
^
Did you use the Metal target on slangc? I could also trigger the hang with the current release of slangc, but only when targeting Metal.
You are correct that all other targets show the error message, even on the playground. I also haven't been able to test it with the current head version because I couldn't get slangc to compile, so the issue may already have been fixed.
Attempting to compile the following code targeting Metal results in the compiler hanging:
I stumbled on this while messing around in the playground: https://shader-slang.com/slang-playground/?target=METAL&code=eJyLLs5ITEkt0lBKzs8tKC1JVdKM5UorzUtWyNXQVKjmUgCCIg1Na65aLohwEZowAHEsEU0
The text was updated successfully, but these errors were encountered: