-
Notifications
You must be signed in to change notification settings - Fork 939
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
Support override-expression for workgroup_size
#4450
Comments
Not sure if this is the exact same issue but it seems module scope constants are explicitly allowed for workgroup_size, but naga only accepts literals. Would be nice to do something like this:
Would it work to add in a branch that uses |
Yeah, this can be considered a part of the issue. Technically speaking, there should be no place in code where only literals are supported. If literals are supported, then constants as well. |
workgroup_size
This is the relevant line for specifying It looks like expressions support overrides, it's just that they don't get compiled to const expressions in [1] since Maybe we can add a I'll give it a try sometime this week. |
Required for https://gpuharbor.ucsc.edu/
The text was updated successfully, but these errors were encountered: