Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler hangs on recursive functions when targeting Metal #5684

Open
dbartussek opened this issue Nov 26, 2024 · 0 comments
Open

Compiler hangs on recursive functions when targeting Metal #5684

dbartussek opened this issue Nov 26, 2024 · 0 comments

Comments

@dbartussek
Copy link

Attempting to compile the following code targeting Metal results in the compiler hanging:

[shader("compute")]
func m() {
    r();
}

func r() {
    r();
}

I stumbled on this while messing around in the playground: https://shader-slang.com/slang-playground/?target=METAL&code=eJyLLs5ITEkt0lBKzs8tKC1JVdKM5UorzUtWyNXQVKjmUgCCIg1Na65aLohwEZowAHEsEU0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant