bevy/crates/bevy_winit/src
François f969c62f7b Fix wasm examples (#4967)
# Objective

Fix #4958 

There was 4 issues:

- this is not true in WASM and on macOS: f28b921209/examples/3d/split_screen.rs (L90)
  - ~~I made sure the system was running at least once~~
  - I'm sending the event on window creation
- in webgl, setting a viewport has impacts on other render passes
  - only in webgl and when there is a custom viewport, I added a render pass without a custom viewport
- shaderdef NO_ARRAY_TEXTURES_SUPPORT was not used by the 2d pipeline
  - webgl feature was used but not declared in bevy_sprite, I added it to the Cargo.toml
- shaderdef NO_STORAGE_BUFFERS_SUPPORT was not used by the 2d pipeline
  - I added it based on the BufferBindingType

The last commit changes the two last fixes to add the shaderdefs in the shader cache directly instead of needing to do it in each pipeline

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-06-11 20:10:13 +00:00
..
converters.rs Rename ElementState to ButtonState (#4314) 2022-04-24 22:57:02 +00:00
lib.rs Fix wasm examples (#4967) 2022-06-11 20:10:13 +00:00
web_resize.rs Optionally resize Window canvas element to fit parent element (#4726) 2022-05-20 23:13:48 +00:00
winit_config.rs Fix crash when using Duration::MAX (#4900) 2022-06-02 19:42:20 +00:00
winit_windows.rs Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00