-
Notifications
You must be signed in to change notification settings - Fork 250
PushConstant not being OpTypeStruct is invalid on Vulkan hosts #362
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
Comments
Thank you for your issue! While I'm not doubting that is the case, I cannot find any reference in the SPIR-V spec that lays out that requirement. Perhaps they could expand further? @baldurk The closest thing I could find is the following:
Where composite is defined as "An aggregate, a matrix, or a vector.", which would imply to me that this is not a requirement for those storage classes containing scalars. |
@XAMPPRocky That's probably referred to using Vulkan as host which comes with its own set of requirements and constraints: |
That's a good catch @msiglreith ! Given how we want to use rust-gpu, having an option to, or at least initially, always following Vulkan's extra rules seems like the way to go. |
I believe this was fixed by two things:
|
Quoth Baldur (hope he doesn't mind I post it here):
The text was updated successfully, but these errors were encountered: