-
Notifications
You must be signed in to change notification settings - Fork 848
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
Specialization constant not considered constant for subgroupBroadcast #2919
Comments
Yes, subGroupSize-1 should be considered a compile-time constant by glslang. |
I am not seeing the Error diagnostic with the latest glslang. Here is the SPIR-V that is generated, which looks to be correct:
I am going to close this. If you don't see a similar result with the latest glslang, please comment and I will re-open. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compilation of the following code gives an error stating that the argument to
subgroupBroadcast
should be a compile-time constant. As far as I understand it, a specialization constant is a compilation constant and should be acceptable.Error diagnostic:
There was a similar issue for texture load but that has been resolved #2178
Using a specialization constant as the broadcast id is useful in prefix sum operations as stated in #1591 where @jekstrand suggests the use of a specialization constant with subgroupBroadcast (which will not work as long as glslang marks this as an error.
The text was updated successfully, but these errors were encountered: