Closed erictuvesson closed 2 years ago
I assume this would be fixed by adding #[align(16)]
to all the ShaderType
structs. I'll have to trying building something for WebGL and see. Ideally, the extra alignment could be optional since recent GPUs running natively don't appear to need it.
Per https://github.com/gfx-rs/wgpu/issues/2832 , this error is actually triggered by the struct definition in the shader, so it needed fixing with alignment annotations there too.
Fixed in 0.2.2.
Getting this exception when running in WASM / WebGL.
https://docs.rs/wgpu/latest/wgpu/struct.DownlevelFlags.html#associatedconstant.BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED