bevy/crates/bevy_sprite/src
charlotte a861452d68
Add user supplied mesh tag (#17648)
# Objective

Because of mesh preprocessing, users cannot rely on
`@builtin(instance_index)` in order to reference external data, as the
instance index is not stable, either from frame to frame or relative to
the total spawn order of mesh instances.

## Solution

Add a user supplied mesh index that can be used for referencing external
data when drawing instanced meshes.

Closes #13373

## Testing

Benchmarked `many_cubes` showing no difference in total frame time.

## Showcase



https://github.com/user-attachments/assets/80620147-aafc-4d9d-a8ee-e2149f7c8f3b

---------

Co-authored-by: IceSentry <IceSentry@users.noreply.github.com>
2025-02-10 22:38:13 +00:00
..
mesh2d Add user supplied mesh tag (#17648) 2025-02-10 22:38:13 +00:00
render Allowed creating uninitialized images (for use as storage textures) (#17760) 2025-02-10 22:22:07 +00:00
texture_slice Proportional scaling for the sprite's texture. (#17258) 2025-01-24 18:24:02 +00:00
lib.rs Retain bins from frame to frame. (#17698) 2025-02-08 20:13:33 +00:00
picking_backend.rs Rename PickingBehavior to Pickable (#17266) 2025-01-12 05:36:52 +00:00
sprite.rs Proportional scaling for the sprite's texture. (#17258) 2025-01-24 18:24:02 +00:00