Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix post_processing example on webgl2 (#9361)
# Objective The `post_processing` example is currently broken when run with webgl2. ``` cargo run --example post_processing --target=wasm32-unknown-unknown ``` ``` wasm.js:387 panicked at 'wgpu error: Validation Error Caused by: In Device::create_render_pipeline note: label = `post_process_pipeline` In the provided shader, the type given for group 0 binding 2 has a size of 4. As the device does not support `DownlevelFlags::BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED`, the type must have a size that is a multiple of 16 bytes. ``` I bisected the breakage to c7eaedd. ## Solution Add padding when using webgl2
- Loading branch information