-
Notifications
You must be signed in to change notification settings - Fork 597
spirv-val: Print Storage Class in error message #6071
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
I'm not aware of anything, most places in the validator just write out the storage class when it is very few values or ignore printing it (maybe hoping the disassembly shows it). |
The main issue is the new #5958 check. It really doesn't explain what is wrong and have had a few people ping me (since they hit it when updating VVL) go "so wait, what is the issue, what broke?" and was hoping to have that error spell out what is going on... which led me to realize there was no StorageClass to string to print an error message |
Is that the right issue? Those checks don't seem like they need a storage class. Did you mean #6012? I could see attaching the storage class it was instantiated for that. |
sorry yes, #6012 - yes, it is not obvious to the user from the error the issue is Also I have a MR up to try and add a VUID to help direct people to the spec text as well |
I basically wanted to add
StorageClassToString()
found inspirv.hpp11
to some error messages the clear up what the actually error is.Before I go around adding it (or maybe can update it as a drop in replacement) wanted to know if there is some util somewhere
The text was updated successfully, but these errors were encountered: