How do I solve BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED issue? #3116
-
I'm trying to get a wgpu renderer to deploy on the web. I am running into this error:
I understand this has to do with buffer alignment, but which buffers exactly would this refer to, and how can I fix this issue? I.e. I have a uniform buffer binding - would this refer to that, or else to my vertex buffer layouts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The idea behind this error is that the WebGL backend requires uniform buffers to be 16-byte aligned. To support WebGL, you'll need to add padding somewhere in the uniform buffer (e.g., probably at the end). Your vertex buffer layouts should be fine. A better error message is being worked on in #3099 |
Beta Was this translation helpful? Give feedback.
The idea behind this error is that the WebGL backend requires uniform buffers to be 16-byte aligned. To support WebGL, you'll need to add padding somewhere in the uniform buffer (e.g., probably at the end).
Your vertex buffer layouts should be fine.
A better error message is being worked on in #3099