mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
1d0ea78f36
# 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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |