bevy/crates/bevy_render/src
Rob Parrett 1170b30785 Fix panic when using globals uniform in wasm builds (#6460)
# Objective

Fixes #5393 

## Solution

- Add padding to `GlobalsUniform` / `Globals` to make it 16-byte aligned.

Still not super clear on whether this is a `naga` thing or an `encase` thing or what. But now that we're offering `globals` up to users and #5393 is not just breaking an example, maybe we should do this sort of workaround?
2022-11-07 19:44:14 +00:00
..
camera Add CameraRenderGraph::set (#6470) 2022-11-06 17:14:10 +00:00
color Correctly use as_hsla_f32 in Add<Color> and AddAssign<Color>, fixes #5543 (#5546) 2022-08-17 14:00:10 +00:00
mesh Allow passing glam vector types as vertex attributes (#6442) 2022-11-04 03:45:17 +00:00
primitives Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
render_graph fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
render_phase Fix clippy::iter_with_drain (#6485) 2022-11-06 01:42:15 +00:00
render_resource Fix panic when using globals uniform in wasm builds (#6460) 2022-11-07 19:44:14 +00:00
renderer fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
texture Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
view Rework ViewTarget to better support post processing (#6415) 2022-10-31 20:22:18 +00:00
extract_component.rs Replace WorldQueryGats trait with actual gats (#6319) 2022-11-03 16:33:05 +00:00
extract_param.rs Exclusive Systems Now Implement System. Flexible Exclusive System Params (#6083) 2022-09-26 23:57:07 +00:00
extract_resource.rs Prepare for upcoming rustlang by fixing upcoming clippy warnings (#6376) 2022-10-26 19:15:15 +00:00
globals.rs Fix panic when using globals uniform in wasm builds (#6460) 2022-11-07 19:44:14 +00:00
lib.rs Revert "Show prelude re-exports in docs (#6448)" (#6449) 2022-11-02 20:40:45 +00:00
rangefinder.rs Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
render_asset.rs Fix clippy::iter_with_drain (#6485) 2022-11-06 01:42:15 +00:00
settings.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
spatial_bundle.rs Add associated constant IDENTITY to Transform and friends. (#5340) 2022-08-30 22:10:24 +00:00