-
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
error when creating a const vector with specialization constants #2025
Comments
a simpler example:
Expected output:
That spirv works, it gets validated and changing the spec constant works, too. |
I'm also hitting this issue. If |
I'm also hitting this bug. Working around it using Also, I think this is a bug, not missing functionality, and should be reclassified as such. |
glslang has commented code and a commented test which holds to the policy that constant float vectors containing specialization constants are not allowed, although I can find no such policy in the Vulkan, SPIR-V or GLSL specs. The aforementioned test's file name seems to imply that the policy comes from Vulkan. I will check with the SPIR-V WG to see if they know more about this policy. Once I have a go-ahead from them I should be posting a fix shortly after. |
According to the SPIR-V WG, the construct I will add support shortly. |
My shader looks like that:
If I try to compile that to Vulkan spir-v, the following error occurs:
This usage should be valid and is even mentioned in the spec:
https://github.com/KhronosGroup/GLSL/blob/6c0a07d45d45c42e6fbe441e5199fe8497d085d7/extensions/khr/GL_KHR_vulkan_glsl.txt#L181
I have tried Version 7.13.3381 and latest master.
The text was updated successfully, but these errors were encountered: