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

use VISIBILITY_RANGE_UNIFORM_BUFFER_SIZE const #4

Conversation

IceSentry
Copy link

@IceSentry IceSentry commented May 4, 2024

Instead of using an hardcoded value use a const for the size.

I didn't put the const behind the ifdef because I don't want to break the import statement. Currently naga_oil just ignores it, so it doesn't matter right now but if it ever actually checks that the import is valid before processing it, it would break. Alternatively we could just set it to 0 in the dynamic case.

This doesn't have to be merged, it's just an alternative solution I wanted to explore.

Copy link

github-actions bot commented May 4, 2024

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@pcwalton pcwalton merged commit 617953a into pcwalton:fixed-length-hlod-array May 4, 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