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

Follow function call statements #69

Merged

Conversation

stefnotch
Copy link
Contributor

@stefnotch stefnotch commented Nov 11, 2024

I ran into this bug, noticed the todo comment, and fixed it :)

Essentially WGSL has both function calls as expressions a * func() + b and function calls as statements foobar();. And naga apparently separates the two.

@ScanMountGoat
Copy link
Owner

Thank you for fixing this. I would like the test case to compare the expected Rust output similar to the existing test in that file. The generated Rust file should be fairly small and will make the test more specific.

@stefnotch
Copy link
Contributor Author

@ScanMountGoat Sounds good, I updated the testing code. Let me know if there's anything else that I should improve.

@ScanMountGoat
Copy link
Owner

Looks good. Thanks.

@ScanMountGoat ScanMountGoat merged commit d783b7c into ScanMountGoat:main Nov 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants