bevy/crates/bevy_pbr
Robert Swain 1d0ea78f36
Save 16 bytes per MeshUniform in uniform/storage buffers (#11999)
# Objective

- Save 16 bytes per MeshUniform in uniform/storage buffers.

## Solution

- Reorder members of MeshUniform to capitalise on alignment and size
rules for tighter data packing. Before the size of a MeshUniform was 160
bytes, and after it is 144 bytes, saving 16 bytes of unused padding for
alignment.

---

## Changelog

- Reduced the size of MeshUniform by 16 bytes.
2024-02-20 16:25:25 +00:00
..
src Save 16 bytes per MeshUniform in uniform/storage buffers (#11999) 2024-02-20 16:25:25 +00:00
Cargo.toml Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00