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

shaders: Remove workaround for const / let globals #761

Conversation

waywardmonkeys
Copy link
Contributor

In the past, naga had issues with the correct form for this code, so a workaround was put into place to let the shaders-as-written use let, but then turn it into const.

This hasn't been strictly followed since then with a couple of things using const anyway.

In the past, naga had issues with the correct form for this code,
so a workaround was put into place to let the shaders-as-written
use `let`, but then turn it into `const`.

This hasn't been strictly followed since then with a couple of
things using `const` anyway.
@waywardmonkeys
Copy link
Contributor Author

Take note that a few things were commented out and using hand-written constants but now are using the const to evaluate the value.

@waywardmonkeys waywardmonkeys added this pull request to the merge queue Dec 2, 2024
Merged via the queue into linebender:main with commit d796c78 Dec 2, 2024
17 checks passed
@waywardmonkeys waywardmonkeys deleted the remove-naga-const-let-workaround branch December 2, 2024 12:55
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