-
Notifications
You must be signed in to change notification settings - Fork 846
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
Helpful information for BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED
#2832
Comments
I am a bevy user experiencing this error while migrating to a version of bevy that uses wgpu 0.13, and I would definitely love to have any sort of idea what's going on. |
The problem is that the size of your shader side struct must be aligned to size 16 - if it isn't, it needs to be padded out to be size 16 |
One of your shader structs isn't aligned. Not going to tell you which one. You have to find the needle in the haystack. Sad face. |
@gilescope We should have the binding information available in the key of the hash map we're iterating through here, so a PR adding this information shouldn't be that difficult. https://github.com/gfx-rs/wgpu/blob/master/wgpu-core/src/device/mod.rs#L2857 |
Is your feature request related to a problem? Please describe.
BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED
is unsupported, and the pipeline name, and nothing else.Describe the solution you'd like
Provide diagnostic information to help fix the alignment problem, such as:
All but the first of these improvements would require making the
MissingDownlevelFlags
error able to carry additional context, or some other kind of refactoring of the error types.The text was updated successfully, but these errors were encountered: