-
Notifications
You must be signed in to change notification settings - Fork 722
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
Mark WaveGetLaneCount as constexpr #4731
Comments
I would also like to see this supported. |
The use case of being able to construct a wave-width array could potentially be addressed another way, but |
@llvm-beanz perhaps leave this open (and retitle) for that "other way"? |
@MarijnS95, I think the correct approach for this is to add some sort of support for specialization constants to DXIL which we have tracked in the hlsl-specs repo issue #16. While at first glance these may seem slightly orthogonal, both require runtime & driver initialized constants, which is what this is too. We have the same challenge with #4290. So, I think the TL;DR here is that this will all be rolled into specialization constant support, and we don't really need multiple issues tracking it. |
@llvm-beanz that sounds like the perfect match for specialization constants, as long as it is tracked somewhere that |
Currently one can't easily do this; instead you'd have to create a new shader permutation for every supported wave size.
The text was updated successfully, but these errors were encountered: